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
  • SENTSDKInitState
  • SENTQuotaStatus
  • SENTResetFailureReason
  • canDetect
  • isRemoteEnabled
  • isLocationPermGranted
  • isBgAccessPermGranted
  • isAccelPresent
  • isGyroPresent
  • isGpsPresent
  • wifiQuotaStatus
  • mobileQuotaStatus
  • diskQuotaStatus
  • startStatus
  • isEqualToSDKStatus
  1. SDK
  2. API Reference
  3. iOS
  4. SENTSDK

SENTSDKStatus

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.

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)

@property(nonatomic, assign) BOOL canDetect;

isRemoteEnabled

True if kill-switch is not enabled

@property(nonatomic, assign) BOOL isLocationPermGranted;

isLocationPermGranted

True if location permissions are granted. If false, canDetect will be false.

@property(nonatomic, assign) BOOL isLocationPermGranted;

isBgAccessPermGranted

True if SDK is allowed to run in the background (iOS)

@property(nonatomic, assign) BOOL isBgAccessPermGranted;

isAccelPresent

True if device has an accelerometer

@property(nonatomic, assign) BOOL isAccelPresent;

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

@property(nonatomic, assign) SENTQuotaStatus wifiQuotaStatus;

mobileQuotaStatus

Indicates mobile data quota state

@property(nonatomic, assign) SENTQuotaStatus mobileQuotaStatus;

diskQuotaStatus

Indicates disk quota state

@property(nonatomic, assign) SENTQuotaStatus diskQuotaStatus;

startStatus

Indicates the status of the SDK

@property(nonatomic, assign) SENTStartStatus startStatus;
Attributes
Description

SENTStartStatusNotStarted

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

SENTStartStatusExpired

isEqualToSDKStatus

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

Last updated 1 year ago

SDK detections were not started (i.e. start: was never called), or are stopped (by explicitly calling ).

The SDK detections are successfully started after the enclosing app has called

The SDK start request expired on the date specified when calling . Detections are no longer running.

Returns a Boolean value that indicates whether a given is equal to the receiver using item by item comparsion.

SDKStatus
stop
start:
startWithStopDate