ZendriveDriveDetectionMode
enum ZendriveDriveDetectionMode : int {}
Dictates the functioning of Zendrive’s drive detection.
-
Zendrive
SDK will automatically track drives in background in this mode once the SDK is setup. At the same time, the application can invoke+[Zendrive startManualDrive:completionHandler]
to explicitly start recording a drive. This is the Default mode.Declaration
Objective-C
ZendriveDriveDetectionModeAutoON = 0
-
In this mode auto drive-detection is disabled. All other APIs on
Zendrive
can be invoked independent of this mode. For recording trips in this mode, the application has to explicitly invoke the+[Zendrive startManualDrive:completionHandler]
method.Declaration
Objective-C
ZendriveDriveDetectionModeAutoOFF = 1
-
In this mode drive detection is controlled by period APIs present in
ZendriveInsurance
class. OnlyZendriveInsurance
APIs should be used in this mode to control ZendriveSDK behavior.Declaration
Objective-C
ZendriveDriveDetectionModeInsurance = 2