Enumerations
The following enumerations are available globally.
-
Confidence measure of the detected accident.
See moreDeclaration
Swift
@objc(ZDAccidentConfidence) public enum AccidentConfidence : Int32
-
Dictates the functioning of Zendrive’s drive detection.
See moreDeclaration
Swift
@objc(ZDDriveDetectionMode) public enum DriveDetectionMode : Int32
-
The type of the drive returned from
DriveInfo.driveType
.This decides what other
See moreDriveInfo
parameters will be populated. A drive callback can be sent as a false alarm or when we detect that the user was not actually driving but moved using other means of transport.Declaration
Swift
@objc(ZDDriveType) public enum DriveType : Int32
-
The value return from
See moreDriveInfo.userMode
. Indicates whether user was a driver or passenger.Declaration
Swift
@objc(ZDUserMode) public enum UserMode : Int32
-
The types of phone positions during a trip.
See moreDeclaration
Swift
@objc(ZDPhonePosition) public enum PhonePosition : Int32
-
Enumeration for different service levels supported by
Zendrive
for a driver. By default, drivers will be assigned to the default service level - ServiceLevel.default.This is useful for applications which need special modes in the Zendrive SDK for different drivers - e.g default mode for free users and a advanced mode for paid users.
By default, multiple service levels are not enabled for an application. To be able to use different modes for your application, you should contact support@zendrive.com with your requirements and get that enabled for your application. Otherwise, if this is not enabled for your application, all drivers get mapped to ServiceLevel.default irrespective of the service level specified.
See moreDeclaration
Swift
@objc(ZDServiceLevel) public enum ServiceLevel : Int32
-
This is returned in
See moreEvent.eventSeverity
, it represents the severity of event if application for that event type.Declaration
Swift
@objc(ZDEventSeverity) public enum EventSeverity : Int
-
This is returned in
See moreEvent.turnDirection
, it represents the turn direction forEventType.hardTurn
Declaration
Swift
@objc(ZDTurnDirection) public enum TurnDirection : Int
-
The event type as specified in
See moreEvent.eventType
Declaration
Swift
@objc(ZDEventType) public enum EventType : Int
-
Zendrive follows the star rating system, under which five star defined as the best rating with one being the worst.
See moreDeclaration
Swift
@objc(ZDStarRating) public enum StarRating : Int32
-
The value return from
See moreTripWarning.warning
. Enum representing warnings detected for the current drive.Declaration
Swift
@objc(ZDTripWarningType) public enum TripWarningType : Int32
-
Status of the debug upload request. As received in the delegate.
See moreDeclaration
Swift
@objc(ZDDebugUploadStatus) public enum DebugUploadStatus : Int32
-
The category that best indicates the type of trip
See moreDeclaration
Swift
@objc(ZDDriveCategory) public enum DriveCategory : UInt