asynchronous
detect

Description

Make sure that the crossmark extension is installed with the API

💡

This function will automatically be run when the SDK is instantiated. This method should rarely be used. If you need to determine if crossmark exists on your users device, we recommend refer to (isInstalled())[/docs/docs-methods/isInstalled] or grabbing the status using the window provider.


Usage

await sdk.async.detect(timeout: number)

Parameters

timeout: number; // in milliseconds;

Response

Promise<boolean>;

Example

let isDetected = await sdk.async.detect();
 
console.log(isDetected);
// true