initialize
Initializes the Sentiance SDK, thereby preparing it to resume detections if a Sentiance user exists, and if detections were last enabled. If a user does not exist, this method does only minimal work to allow user creation. To create a user, call createUser.
To ensure proper continuity of SDK detections across app restarts, this method must be called inside onCreate, on the main application thread, before onCreate returns. The call must not be done asynchronously, as doing so cannot guarantee its invocation prior to the completion of the app startup. For more information about this requirement, see: SDK Initialization
You should initialize the SDK at most once, normally during app startup. Initializing it multiple times will fail with reason REINITIALIZATION_NOT_ALLOWED, unless a Sentiance user does not yet exist (e.g. before user creation, or after an SDK reset), in which case multiple invocations of this method are still allowed.
Note that most SDK methods require an initialized SDK before being invoked, otherwise they throw a runtime exception. Methods excluded from this requirement indicate this in their respective documentation.
Return
the initialization result.
Initializes the Sentiance SDK, thereby preparing it to resume detections if a Sentiance user exists. If a user does not exist, this method does only minimal work to allow user creation. To create a user, call createUser.
To ensure proper continuity of SDK detections across app restarts, this method must be called inside onCreate, on the main application thread, before onCreate returns. The call must not be called asynchronously, as doing so cannot guarantee its invocation prior to the completion of the app startup. For more information about this requirement, see: SDK Initialization
You should initialize the SDK at most once, normally during app startup. Initializing it multiple times will fail with reason REINITIALIZATION_NOT_ALLOWED, unless a Sentiance user does not yet exist (e.g. before user creation, or after an SDK reset), in which case multiple invocations of this method are still allowed.
Note that most SDK methods require an initialized SDK before being invoked, otherwise they throw a runtime exception. Methods excluded from this requirement indicate this in their respective documentation.
Return
the initialization result.
Parameters
SDK initialization options.