SENTSDKStatus
Last updated
Last updated
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.
Indicates the SDK initialization status.
Quota status applicable to disk and network usage.
Attributes | Description |
---|---|
Indicates the failure reason of the latest reset attempt.
Attributes | Description |
---|---|
True only if detections are possible (i.e. there are no issues blocking detection)
True if kill-switch is not enabled
True if location permissions are granted. If false, canDetect will be false.
True if SDK is allowed to run in the background (iOS)
True if device has an accelerometer
True if device has a gyroscope
True if device has a GPS unit
Indicates WiFi quota state
Indicates mobile data quota state
Indicates disk quota state
Indicates the status of the SDK
Returns a Boolean value that indicates whether a given SDKStatus is equal to the receiver using item by item comparsion.
Attributes | Description |
---|---|
SENTNotInitialized
The SDK has not been initialized or a previous initialization attempt has failed. To initialize the SDK, call [[SENTSDK sharedInstance] initWithConfig:(SENTConfig *) success:^(void)success failure:^(SENTInitIssue issue)failure]
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.
SENTQuotaStatusOK
The quota is below the threshold.
SENTQuotaStatusWarning
More than 90 percent of the quota is consumed.
SENTQuotaStatusExceeded
The quota is fully consumed.
SENTResetFailureReasonInitInProgress
SDK initialization is in progress.
SENTResetFailureReasonResetting
Another SDK reset is in progress.
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.