SdkStatus
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.
This class exposes the status of the Sentiance SDK. You can get an instance of this object in two ways.
Using
OnSdkStatusUpdateHandleras explained in the SDK Status Updates step of the quick start guide;using the
getSdkStatus()method.
A sample OnSdkStatusUpdateHandler implementation can be found on our Github.
SdkStatus API
startStatus
startStatusA
StartStatusenum representing the start state of the SDK detections..
canDetect
canDetectA synthesis of many of the other fields (
isRemoteEnabled,isLocationPermGranted,locationSetting,isGpsPresent,isGooglePlayServicesMissing,isAirplaneModeEnabled,isLocationAvailable,diskQuotaStatus, andisBackgroundProcessingRestricted).This field indicates whether the conditions are suitable for the SDK to run its detections. If this is true, it does not mean that detections are running; that also depends on
startStatus.
isRemoteEnabled
isRemoteEnabledWhether the user is enabled by the Sentiance API. This field can be used in combination with the rollout settings on the Audience Manager.
isLocationPermGranted
isLocationPermGrantedWhether the user has granted location permission to the app.
isPreciseLocationPermGranted
isPreciseLocationPermGrantedWhether the user has granted precise location permission to the app.
See https://developer.android.com/about/versions/12/approximate-location
isActivityRecognitionPermGranted
isActivityRecognitionPermGrantedWhether the activity recognition permission has been granted.
locationSetting
locationSettingA
LocationSettingenum representing the location mode setting on the device.
isAirplaneModeEnabled
isAirplaneModeEnabledWhether the device is in airplane mode.
isLocationAvailable
isLocationAvailableWhether the device's location is available. Several reasons may lead to failure to obtain a location (e.g. no GPS or network signal).
isAccelPresent
isAccelPresentWhether an accelerometer sensor is present on the device.
isGyroPresent
isGyroPresentWhether a gyroscope sensor is present on the device.
isGpsPresent
isGpsPresentWhether a GPS sensor is present on the device.
isGooglePlayServicesMissing
isGooglePlayServicesMissingWhether Google Play Services is missing from the device.
isBatteryOptimizationEnabled
isBatteryOptimizationEnabledWhether battery optimization is enabled for the application. This will be set to
falsefor devices running Lollipop and lower.
isBatterySavingEnabled
isBatterySavingEnabledWhether battery saving is enabled on the device. This will be set to
falsefor devices running Kitkat and lower.
isBackgroundProcessingRestricted
isBackgroundProcessingRestrictedWhether background processing is restricted for the application. When
true, SDK detections will be will be paused. This will be set tofalsefor devices running Oreo and lower.
wifiQuotaStatus
wifiQuotaStatusA
QuotaStatusenum representing the WiFi quota status of the SDK.The actual usages and limits in bytes can be obtained using the
getWiFiQuotaUsage(),getWiFiQuotaLimit().
mobileQuotaStatus
mobileQuotaStatusA
QuotaStatusenum representing the mobile data quota status of the SDK.The actual usages and limits in bytes can be obtained using the
getMobileQuotaUsage(),getMobileQuotaLimit().
diskQuotaStatus
diskQuotaStatusA
QuotaStatusenum representing the disk quota status of the SDK.The actual usages and limits in bytes can be obtained using the
getDiskQuotaUsage(),getDiskQuotaLimit().
Last updated