ISentiance

interface ISentiance

Inheritors

Functions

Link copied to clipboard
abstract fun addTripMetadata(@NonNull metadata: Map<String, String>): Boolean
Adds metadata to an external ongoing trip.
Link copied to clipboard
abstract fun addUserMetadataField(@NonNull label: String, @NonNull value: String)
Adds a user specific metadata field.
Link copied to clipboard
abstract fun addUserMetadataFields(@NonNull metadata: Map<String, String>)
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
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
Link copied to clipboard
Returns a the detection status as a DetectionStatus enum.
Link copied to clipboard
abstract fun getDiskQuotaLimit(): Long
Returns the SDK's disk quota limit.
Link copied to clipboard
abstract fun getDiskQuotaUsage(): Long
Returns the SDK's disk quota usage.
Link copied to clipboard
Returns the initialization state of the Sentiance SDK.
Link copied to clipboard
abstract fun getMobileQuotaLimit(): Long
Returns the SDK's mobile data quota limit.
Link copied to clipboard
abstract fun getMobileQuotaUsage(): Long
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
abstract fun getUserId(): String
Returns the Sentiance user ID, or null if a user does not exist.
Link copied to clipboard
abstract fun getUserTags(): Map<String, String>
Returns the tags currently set for the Sentiance user, as previously provided to setUserTags.
Link copied to clipboard
abstract fun getVersion(): String
Returns the SDK version.
Link copied to clipboard
abstract fun getWiFiQuotaLimit(): Long
Returns the SDK's WiFi quota limit.
Link copied to clipboard
abstract fun getWiFiQuotaUsage(): Long
Returns the SDK's WiFi quota usage.
Link copied to clipboard
abstract fun init(@NonNull sdkConfig: SdkConfig, @NonNull initCallback: OnInitCallback)
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
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
abstract fun isTripOngoing(@NonNull tripType: TripType): Boolean
Indicates whether a trip is in progress.
Link copied to clipboard
abstract fun isUserLinked(): Boolean
Returns whether a Sentiance user exists on the device, and whether it is linked to your app's user.
Link copied to clipboard
Links the Sentiance user to your app's user, on the Sentiance Cloud Platform.
Link copied to clipboard
abstract fun removeUserMetadataField(@NonNull label: String)
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.
abstract fun reset(@Nullable callback: ResetCallback)
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
abstract fun setIsAllowedToUseMobileData(isAllowed: Boolean)
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
abstract fun setTransmittableDataTypes(@NonNull transmittableDataTypes: Set<TransmittableDataType>)
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
abstract fun setUserTags(@NonNull tags: Map<String, String>)
Sets the tags for the current Sentiance user.
Link copied to clipboard
abstract fun start(@NonNull handler: OnStartFinishedHandler)
abstract fun start(@Nullable stopDate: Date, @NonNull handler: OnStartFinishedHandler)
Deprecated: use enableDetections instead.
Link copied to clipboard
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
abstract fun stop()
Deprecated: use disableDetections instead.
Link copied to clipboard
Stops the currently ongoing external trip (i.
abstract fun stopTrip(@Nullable callback: StopTripCallback)
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
abstract fun updateSdkNotification(@NonNull notification: Notification)
Replaces the notification set via setNotification.
Link copied to clipboard
abstract fun userExists(): Boolean
Returns whether a Sentiance user exists on the device.