initialized

Check whether the SDK has been initialized.

This property indicates whether the SDK has been initialized.

It is true after calling the plug method and false after calling the unplug method.

Signature

This property has the following signature:

public get initialized(): boolean

Example

Here is a basic example of how to use this property:

import croct from '@croct/plug';
console.log(croct.initialized); // false
croct.plug({appId: '00000000-0000-0000-0000-000000000000'});
console.log(croct.initialized); // true
croct.unplug();
console.log(croct.initialized); // false