Search…
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. 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)
1
@property(nonatomic, assign) BOOL canDetect;
Copied!

isRemoteEnabled

True if kill-switch is not enabled
1
@property(nonatomic, assign) BOOL isLocationPermGranted;
Copied!

isLocationPermGranted

True if location permissions are granted. If false, canDetect will be false.
1
@property(nonatomic, assign) BOOL isLocationPermGranted;
Copied!

isBgAccessPermGranted

True if SDK is allowed to run in the background (iOS)
1
@property(nonatomic, assign) BOOL isBgAccessPermGranted;
Copied!

isAccelPresent

True if device has an accelerometer
1
@property(nonatomic, assign) BOOL isAccelPresent;
Copied!

isGyroPresent

True if device has a gyroscope
1
@property(nonatomic, assign) BOOL isGyroPresent;
Copied!

isGpsPresent

True if device has a GPS unit
1
@property(nonatomic, assign) BOOL isGpsPresent;
Copied!

wifiQuotaStatus

Indicates WiFi quota state
1
@property(nonatomic, assign) SENTQuotaStatus wifiQuotaStatus;
Copied!

mobileQuotaStatus

Indicates mobile data quota state
1
@property(nonatomic, assign) SENTQuotaStatus mobileQuotaStatus;
Copied!

diskQuotaStatus

Indicates disk quota state
1
@property(nonatomic, assign) SENTQuotaStatus diskQuotaStatus;
Copied!

startStatus

Indicates the status of the SDK
1
@property(nonatomic, assign) SENTStartStatus startStatus;
Copied!
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.
1
- (BOOL) isEqualToSDKStatus: (SENTSDKStatus*) sdkStatus;
Copied!