SENTSDKStatus

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 [[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.

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.

Type
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)

@property(nonatomic, assign) BOOL canDetect;

isRemoteEnabled

True if kill-switch is not enabled

@property(nonatomic, assign) BOOL isLocationPermGranted;

locationPermission

CanDetect is true, if conditions for the location permissions are met.

@property (nonatomic, assign) SENTLocationPermission locationPermission;

isAccelPresent

True if device has an accelerometer

@property(nonatomic, assign) BOOL isAccelPresent;

isPreciseLocationAuthorizationGranted

True if location accuracy authorization permission is granted. If false, canDetect will be false.

@property (nonatomic, assign) BOOL isPreciseLocationAuthorizationGranted;

isDeviceLowPowerModeEnabled

Returns whether low power mode is enabled or not.

@property (nonatomic, assign) BOOL isDeviceLowPowerModeEnabled;

isLocationAvailable

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.

@property (nonatomic, assign) BOOL isLocationAvailable;

isMotionActivityPermissionGranted

Returns whether motion activity permission is granted or not.

@property (nonatomic, assign) BOOL isMotionActivityPermissionGranted;

isGyroPresent

True if device has a gyroscope

@property(nonatomic, assign) BOOL isGyroPresent;

isGpsPresent

True if device has a GPS unit

@property(nonatomic, assign) BOOL isGpsPresent;

wifiQuotaStatus

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.

@property(nonatomic, assign) SENTQuotaStatus wifiQuotaStatus;

mobileQuotaStatus

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.

@property(nonatomic, assign) SENTQuotaStatus mobileQuotaStatus;

diskQuotaStatus

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.

@property(nonatomic, assign) SENTQuotaStatus diskQuotaStatus;

userExists

True if a user exists on the device.

@property (nonatomic, assign) BOOL userExists;

detectionStatus

Indicates whenever the detection is enabled and start or the status of the SDK.

@property (nonatomic, readonly) SENTDetectionStatus detectionStatus;

backgroundRefreshStatus

Get background refresh status for the background processing and fetch capabilities.

@property (nonatomic, assign, readonly) UIBackgroundRefreshStatus backgroundRefreshStatus;

startStatus

Indicates the status of the SDK

@property(nonatomic, assign) SENTStartStatus startStatus;
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.

- (BOOL) isEqualToSDKStatus: (SENTSDKStatus*) sdkStatus;

Last updated