Last updated
Last updated
Indicates the SDK initialization status.
Quota status applicable to disk and network usage.
Indicates the failure reason of the latest reset attempt.
True only if detections are possible (i.e. there are no issues blocking detection)
True if kill-switch is not enabled
CanDetect is true, if conditions for the location permissions are met.
True if device has an accelerometer
True if location accuracy authorization permission is granted. If false, canDetect will be false.
Returns whether low power mode is enabled or not.
The SDK's location availability state.
Generally, when the device location setting is in an acceptable state, and all required location related permissions are granted, this property will be true. However, under certain conditions, location data may still be unavailable, in which case this property will be false. Once location data becomes available again, the SDK will automatically update this property and resume detections if possible.
Note that it can take up to 30 seconds for a change in the device's location settings or permissions to take effect on SDK's location availability state.
Returns whether motion activity permission is granted or not.
True if device has a gyroscope
True if device has a GPS unit
Indicates WiFi quota state.
Sentiance assigns a limited quota for the SDK to utilized over a period of 1 month. The quota usage is reset on the first day of each month. Once the quota is exceeded, data submission over WiFi stops. The default quota is 2048 MB, but is configurable by Sentiance.
Indicates mobile data quota state.
Sentiance assigns a limited quota for the SDK to utilized over a period of 1 month. The quota usage is reset on the first day of each month. Once the quota is exceeded, data submission over mobile data stops. The default quota is 250 MB, but is configurable by Sentiance.
Indicates disk quota state.
Sentiance assigns a limited quota for the SDK to utilized. Once the quota is exceeded, SDK detections stop. The default quota is 128 MB, but is configurable by Sentiance.
True if a user exists on the device.
Indicates whenever the detection is enabled and start or the status of the SDK.
Get background refresh status for the background processing and fetch capabilities.
Indicates the status of the SDK
Returns a Boolean value that indicates whether a given is equal to the receiver using item by item comparsion.
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.
SENTInitialized
The SDK has been initialized.
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.