SentianceOptions

The SentianceOptions class allows you to specify SDK initialization options. This class is used with Sentiance.initialize(SentianceOptions).

See: SentianceOptions.Builder.

SentianceOptions API

getNotificationId()

int getNotificationId()

Returns the ID of the notification that the SDK will show when running in the background. This ID is passed to Android's startForeground method when starting a foreground service.

getNotification()

Notification getNotification()

Returns the notification that the SDK will show when running in the background. This notification is passed to Android's startForeground method when starting a foreground service.

isAppSessionDataCollectionEnabled()

boolean isAppSessionDataCollectionEnabled()

Returns whether app session data collection should be enabled.

If enabled, the SDK may collect additional sensor and location data when the app is in the foreground (i.e visible to the user). This data may get uploaded to the Sentiance Platform.

isIncorrectInitializationNotificationDisabled()

boolean isIncorrectInitializationNotificationDisabled()

Returns whether incorrect SDK initialization notifications should be enabled. On debug builds of your app, the SDK can show a notification when it detects an incorrect SDK initialization.

Last updated