SENTSDKStatus
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.
SENTSDKInitState
Indicates the SDK initialization status.
SENTNotInitialized | The SDK has not been initialized or a previous initialization attempt has failed. To initialize the SDK, call |
SENTInitInProgress | Initialization is in progress. When it completes, the SDK will call success() and failure() if something went wrong. Do not call init during this state. Doing so will throw an exception. |
SENTInitialized | The SDK has been initialized. Do not call init during this state. Doing so will throw an exception. |
SENTResetting | The SDK reset is in progress. All public method calls will be ignored and callbacks will not be triggered during this state. |
SENTQuotaStatus
Quota status applicable to disk and network usage.
Attributes | Description |
---|---|
SENTQuotaStatusOK | The quota is below the threshold. |
SENTQuotaStatusWarning | More than 90 percent of the quota is consumed. |
SENTQuotaStatusExceeded | The quota is fully consumed. |
SENTResetFailureReason
Indicates the failure reason of the latest reset attempt.
Attributes | Description |
---|---|
SENTResetFailureReasonInitInProgress | SDK initialization is in progress. |
SENTResetFailureReasonResetting | Another SDK reset is in progress. |
canDetect
True only if detections are possible (i.e. there are no issues blocking detection)
isRemoteEnabled
True if kill-switch is not enabled
isLocationPermGranted
True if location permissions are granted. If false, canDetect will be false.
isBgAccessPermGranted
True if SDK is allowed to run in the background (iOS)
isAccelPresent
True if device has an accelerometer
isGyroPresent
True if device has a gyroscope
isGpsPresent
True if device has a GPS unit
wifiQuotaStatus
Indicates WiFi quota state
mobileQuotaStatus
Indicates mobile data quota state
diskQuotaStatus
Indicates disk quota state
startStatus
Indicates the status of the SDK
Attributes | Description |
---|---|
SENTStartStatusNotStarted | SDK detections were not started (i.e. start: was never called), or are stopped (by explicitly calling stop). |
SENTStartStatusPending | The enclosing app requested the start of SDK detections, but it could not be completed (e.g. because the user is not enabled on the Sentiance API, permissions are not granted, or location settings are invalid). When the underlying issues are resolved, the detections will start automatically. |
SENTStartStatusStarted | The SDK detections are successfully started after the enclosing app has called start: |
SENTStartStatusExpired | The SDK start request expired on the date specified when calling startWithStopDate. Detections are no longer running. |
isEqualToSDKStatus
Returns a Boolean value that indicates whether a given SDKStatus is equal to the receiver using item by item comparsion.
Last updated