ISentiance
Functions
Link copied to clipboard
Link copied to clipboard
Adds a user specific metadata field.
Link copied to clipboard
Adds multiple user specific metadata fields.The metadata is then uploaded to the Sentiance Cloud Platform and made available in backend API queries and offloads.
Link copied to clipboard
abstract fun createUser(@NonNull options: UserCreationOptions): PendingOperation<UserCreationResult, UserCreationError>
Creates a Sentiance user if one does not yet exist.
Link copied to clipboard
Prompts a system dialog, asking the user to allow disabling battery optimization for the app.
Link copied to clipboard
Disables SDK detections.
Link copied to clipboard
abstract fun enableDetections(@Nonnull expirationDate: Date): PendingOperation<EnableDetectionsResult, EnableDetectionsError>
Enables SDK detections.
Link copied to clipboard
Returns a the detection status as a DetectionStatus enum.
Link copied to clipboard
Returns the SDK's disk quota limit.
Link copied to clipboard
Returns the SDK's disk quota usage.
Link copied to clipboard
Returns the initialization state of the Sentiance SDK.
Link copied to clipboard
Returns the SDK's mobile data quota limit.
Link copied to clipboard
Returns the SDK's mobile data quota usage.
Link copied to clipboard
Returns an SdkStatus object representing the status of the SDK.
Link copied to clipboard
Returns the data types that are allowed to be sent to the Sentiance Cloud Platform.
Link copied to clipboard
Deprecated: use requestUserAccessToken instead.
Link copied to clipboard
Returns a UserActivity object representing the currently detected user's activity.
Link copied to clipboard
Returns the tags currently set for the Sentiance user, as previously provided to setUserTags.
Link copied to clipboard
Returns the SDK version.
Link copied to clipboard
Returns the SDK's WiFi quota limit.
Link copied to clipboard
Returns the SDK's WiFi quota usage.
Link copied to clipboard
Deprecated: use initialize instead.
Link copied to clipboard
Initializes the Sentiance SDK, thereby preparing it to resume detections if a Sentiance user exists, and if detections were last enabled.
Initializes the Sentiance SDK, thereby preparing it to resume detections if a Sentiance user exists.
Link copied to clipboard
abstract fun initializeAsync(@NonNull options: SentianceOptions): PendingOperation<AsyncInitializationResult, AsyncInitializationError>
Initializes the Sentiance SDK, thereby preparing it to resume detections if a Sentiance user exists, and if detections were last enabled.
Link copied to clipboard
Returns whether the Sentiance SDK is allowed to use mobile data for uploading and downloading configuration and detection data.
Link copied to clipboard
Returns whether app session data collection is enabled.
Link copied to clipboard
Indicates whether a trip is in progress.
Link copied to clipboard
Returns whether a Sentiance user exists on the device, and whether it is linked to your app's user.
Link copied to clipboard
abstract fun linkUser(@NonNull userLinker: UserLinker): PendingOperation<UserLinkingResult, UserLinkingError>
abstract fun linkUser(@NonNull userLinker: UserLinkerAsync): PendingOperation<UserLinkingResult, UserLinkingError>
abstract fun linkUser(@NonNull authenticationCode: String): PendingOperation<UserLinkingResult, UserLinkingError>
Links the Sentiance user to your app's user, on the Sentiance Cloud Platform.
Link copied to clipboard
Removes a user specific metadata field.
Link copied to clipboard
Returns the user's API access token as a Token object, via the PendingOperation result.
Link copied to clipboard
Resets the Sentiance SDK.
Deprecated: use reset instead.
Link copied to clipboard
If enabled, the SDK may collect additional sensor and location data when the app is in the foreground (i.e visible to the user).
Link copied to clipboard
Sets whether the Sentiance SDK is allowed to use mobile data for uploading and downloading configuration and detection data.
Link copied to clipboard
Sets a listener that is invoked when the SDK's status is updated.
Link copied to clipboard
Sets the data types that are allowed to be sent to the Sentiance Cloud Platform.
Link copied to clipboard
Sets a listener that is invoked when a trip times out.
Link copied to clipboard
Sets a listener that is invoked when a new user activity is detected.
Link copied to clipboard
Sets the tags for the current Sentiance user.
Link copied to clipboard
Deprecated: use enableDetections instead.
Link copied to clipboard
abstract fun startTrip(@Nullable metadata: Map<String, String>, @Nullable transportModeHint: TransportMode): PendingOperation<StartTripResult, StartTripError>
Starts an external trip.
abstract fun startTrip(@Nullable metadata: Map<String, String>, @Nullable transportModeHint: TransportMode, @Nullable callback: StartTripCallback)
Deprecated: use startTrip instead.
Link copied to clipboard
Deprecated: use disableDetections instead.
Link copied to clipboard
Stops the currently ongoing external trip (i.
Deprecated: use stopTrip instead.
Link copied to clipboard
Submits any pending SDK detection to the Sentiance API.
Deprecated: use submitDetections instead.
Link copied to clipboard
Replaces the notification set via setNotification.
Link copied to clipboard
Returns whether a Sentiance user exists on the device.