DriveType
@objc(ZDDriveType)
public enum DriveType : Int32
The type of the drive returned from DriveInfo.driveType.
This decides what other DriveInfo 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.
-
Sometimes, the SDK detects that a trip is invalid after it has been started. In these cases, the values for
DriveInfo.waypoints,DriveInfo.events,DriveInfo.score,DriveInfo.maxSpeedandDriveInfo.averageSpeedwill have invalid values.Declaration
Swift
case invalid -
This was not a driving trip. For e.g bike and train rides will fall under this trip type. The
DriveInfowill haveDriveInfo.waypoints,DriveInfo.maxSpeed,DriveInfo.averageSpeed,DriveInfo.eventsandDriveInfo.score.Declaration
Swift
case nonDriving -
This trip was taken in a car.
If the SDK determined the user to be a driver or a passenger, the value will be available in
DriveInfo.userModeThe
DriveInfowill haveDriveInfo.waypoints,DriveInfo.maxSpeed,DriveInfo.averageSpeed,DriveInfo.eventsandDriveInfo.score.Declaration
Swift
case drive
DriveType Enumeration Reference