LogoLogo
Insights
  • Introduction
  • A standard integration
  • FAQ
    • FAQ
      • Integration (FAQ)
      • Detections (FAQ)
      • Data interface (FAQ)
      • Security, Privacy and Terms of Service (FAQ)
      • Journeys and Insights (FAQ)
  • SDK
    • Getting Started
      • Android Quick Start
        • 1. Android Checklist
        • 2. Including the SDK
        • 3. Configuration
          • Sample Notification
        • 4. Initialization
        • 5. Starting Detections
        • 6. SDK Status Updates
        • 7. Permissions
        • 8. What's Next
      • iOS Quick Start
        • 1. iOS Checklist
        • 2. Installation
          • Installation with CocoaPods
          • Installation with Carthage
          • Manual Installation
        • 3. Configuration
          • Using Integration Guide
          • Manual Configuration
        • 4. Usage
        • 5. Tips and Guidelines
        • 6. What's Next
      • React Native Quick Start
        • 1. React Native Checklist
        • 2. Installation
        • 3. Configuration
        • 4. Initialization
        • 5. Usage
        • 6. What's Next
    • Appendix
      • Android
        • Android 10 Update Behavior
        • Android Battery Optimization
        • External SDK Dependencies
        • Manifest Permissions
        • Notification Management
      • iOS
        • App Store Privacy Section
        • App Store Release
        • iOS 13 permission changes
        • M1 Simulator Support
        • Swift Support
      • Control Sending Data
      • Controlled Detections
        • Automatic Detections
        • Automatic Detections with Forced Trips
        • Controlled Trips Only
        • Checking Trip Status
      • Custom User Metadata
      • Detecting Vehicle Crashes
      • Migration Guide
        • Android
        • iOS
      • React Native
      • SDK Initialization
      • User Credentials
      • User Linking
      • Xamarin
    • API Reference
      • Android
        • VehicleCrashDetection
          • VehicleCrashEvent
          • VehicleCrashListener
          • CrashCallback
        • InitState
        • MetaUserLinker
        • MetaUserLinkerAsync
        • MetaUserLinkerCallback
        • OnInitCallback
          • InitIssue
        • OnSdkStatusUpdateHandler
        • OnStartFinishedHandler
        • PoiAddress
        • PoiLocation
        • PointOfInterest
        • PoiPlace
        • ResetCallback
          • ResetFailureReason
        • SdkConfig
          • Builder
        • SdkException
        • SdkStatus
          • LocationSetting
          • Quota Status
          • StartStatus
        • Sentiance
        • SubmitDetectionsCallback
        • StationaryInfo
        • Token
        • TokenResultCallback
        • Trip
          • StartTripCallback
          • StopTripCallback
          • TransportMode
          • TripTimeoutListener
          • TripType
        • TripInfo
        • TripProfile
          • HardEvent
          • TransportSegment
          • VehicleMode
        • TripProfileConfig
          • Builder
        • TripProfileListener
        • UserActivity
        • UserActivityListener
        • UserActivityType
      • iOS
        • MetaUserLinker
        • SENTSDK
          • SENTSDKStatus
          • SENTPublicDefinitions
        • SENTConfig
        • SENTTripProcessingTripProfile
          • SENTTripProcessingTransportSegment
          • SENTTripProcessingHardEvent
          • SENTTripProcessingVehicleMode
        • SENTVehicleCrashEvent
      • React Native
    • Battery Optimization
    • How To
      • Check the Location Permissions
    • Troubleshooting
      • Android
      • iOS
        • Bundle format unrecognized, invalid, or unsuitable
        • Error: Undefined symbols for architecture arm64
    • Changelog
      • Android
      • iOS
  • Important topics
    • Authentication and Authorization
    • User linking
    • PlayStore Location Access Review
    • Privacy Report & Dashboard
    • Vehicle Crash Detection
  • Library
    • Events
    • Moments
    • Segments
    • Glossary
  • Backend
    • GraphQL
    • REST API Reference
      • Error Codes (REST API)
    • Offloads
    • Data Reference
      • Data Reference A-B
      • Data Reference C-G
      • Data Reference H-L
      • Data Reference M-P
      • Data Reference Q-T
      • Data Reference U-Z
  • Data Explorer
    • Data Explorer
      • Global (EU)
      • US
      • Australia
  • Guide
    • Firehose
    • Verifying your integration
    • SDK Standard License
    • Journeys License
    • Journeys Application
    • Journeys Privacy Policy
    • Technical & Organizational Measures
Powered by GitBook
On this page
  • SdkStatus API
  • startStatus
  • canDetect
  • isRemoteEnabled
  • isLocationPermGranted
  • isPreciseLocationPermGranted
  • isActivityRecognitionPermGranted
  • locationSetting
  • isAirplaneModeEnabled
  • isLocationAvailable
  • isAccelPresent
  • isGyroPresent
  • isGpsPresent
  • isGooglePlayServicesMissing
  • isBatteryOptimizationEnabled
  • isBatterySavingEnabled
  • isBackgroundProcessingRestricted
  • wifiQuotaStatus
  • mobileQuotaStatus
  • diskQuotaStatus
  1. SDK
  2. API Reference
  3. Android

SdkStatus

PreviousSdkExceptionNextLocationSetting

Last updated 1 year ago

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 as explained in the step of the quick start guide;

  • using the method.

A sample implementation can be found on our .

SdkStatus API

startStatus

A enum representing the start state of the SDK detections..

canDetect

A synthesis of many of the other fields (, , , , , , , , and ).

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 .

isRemoteEnabled

Whether the user is enabled by the Sentiance API. This field can be used in combination with the rollout settings on the Audience Manager.

isLocationPermGranted

Whether the user has granted location permission to the app.

isPreciseLocationPermGranted

Whether the user has granted precise location permission to the app.

isActivityRecognitionPermGranted

Whether the activity recognition permission has been granted.

locationSetting

isAirplaneModeEnabled

Whether the device is in airplane mode.

isLocationAvailable

Whether the device's location is available. Several reasons may lead to failure to obtain a location (e.g. no GPS or network signal).

isAccelPresent

Whether an accelerometer sensor is present on the device.

isGyroPresent

Whether a gyroscope sensor is present on the device.

isGpsPresent

Whether a GPS sensor is present on the device.

isGooglePlayServicesMissing

Whether Google Play Services is missing from the device.

isBatteryOptimizationEnabled

isBatterySavingEnabled

Whether battery saving is enabled on the device. This will be set to false for devices running Kitkat and lower.

isBackgroundProcessingRestricted

wifiQuotaStatus

mobileQuotaStatus

diskQuotaStatus

See

A enum representing the location mode setting on the device.

Whether is enabled for the application. This will be set to false for devices running Lollipop and lower.

Whether background processing is for the application. When true, SDK detections will be will be paused. This will be set to false for devices running Oreo and lower.

A enum representing the WiFi quota status of the SDK.

The actual usages and limits in bytes can be obtained using the , .

A enum representing the mobile data quota status of the SDK.

The actual usages and limits in bytes can be obtained using the , .

A enum representing the disk quota status of the SDK.

The actual usages and limits in bytes can be obtained using the , .

https://developer.android.com/about/versions/12/approximate-location
LocationSetting
battery optimization
restricted
QuotaStatus
QuotaStatus
QuotaStatus
OnSdkStatusUpdateHandler
SDK Status Updates
OnSdkStatusUpdateHandler
Github
StartStatus
isRemoteEnabled
isLocationPermGranted
locationSetting
isGpsPresent
isGooglePlayServicesMissing
isAirplaneModeEnabled
isLocationAvailable
diskQuotaStatus
isBackgroundProcessingRestricted
startStatus
getSdkStatus()
getWiFiQuotaUsage()
getWiFiQuotaLimit()
getMobileQuotaUsage()
getMobileQuotaLimit()
getDiskQuotaUsage()
getDiskQuotaLimit()