DriveDetectionMode
@objc(ZDDriveDetectionMode)
public enum DriveDetectionMode : Int32
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 invokeZendrive.startManualDrive(_:completionHandler:)
to explicitly start recording a drive. This is the Default mode.Declaration
Swift
case autoON
-
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 theZendrive.startManualDrive(_:completionHandler:)
method.Declaration
Swift
case autoOFF
-
In this mode drive detection is controlled by period APIs present in
ZendriveInsurance
class. OnlyZendriveInsurance
APIs should be used in this mode to control Zendrive SDK behavior.Declaration
Swift
case insurance