get Instance
Deprecated
Use CmSdk.create instead
Replace with
CmSdk.create(context = context, enableAnalytics = enableAnalytics)
Creates an instance of CmSdk without initializing it with an API key.
Note:
The instance created by this method is intended to be used as a singleton, calling the method repeatedly will produce different instances each time.
A valid API key is required to connect to Comodule modules. The API key can be set using CmSdk.setApiKey.
Return
An instance of CmSdk.
Parameters
The context required for the SDK's operation, typically the application context.
Optional parameter to enable or disable Analytics and Crashlytics integration. If set to true, Firebase Crashlytics and Analytics will be initialized and enabled for the SDK instance. Crashlytics collects non-fatal SDK errors and reports them to the Firebase project of the client application. Analytics collects SDK-related events. No data is collected by Comodule.
The default value is false, meaning Analytics and Crashlytics will not be enabled unless explicitly requested.