Methods
show()
Show the SDK to the user
show() Definition
public show(element?: HTMLElement): void
If no element
is passed, the SDK will be injected into document.body
.
Example
Example Usage of show()
import { VerifiedClientSdk, ... } from '@verifiedinc-public/client-sdk';
const verifiedClientSdk = new VerifiedClientSdk({ ... });
// Show SDK to user (in document.body if no HTML element is passed)
verifiedClientSdk.show(document.getElementById('verifiedClientSdk-container'));
destroy()
Destroy the SDK element and invalidate the instance
destroy() Definition
public destroy(): void
Example
Example Usage of destroy()
import { VerifiedClientSdk, ... } from '@verifiedinc-public/client-sdk';
const verifiedClientSdk = new VerifiedClientSdk({ ... });
// Destroy the SDK
verifiedClientSdk.destroy();