Enumerations

The following enumerations are available globally.

  • Confidence measure of the detected accident.

    See more

    Declaration

    Swift

    @objc(ZDAccidentConfidence)
    public enum AccidentConfidence : Int32
  • Dictates the functioning of Zendrive’s drive detection.

    See more

    Declaration

    Swift

    @objc(ZDDriveDetectionMode)
    public enum DriveDetectionMode : 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.

    See more

    Declaration

    Swift

    @objc(ZDDriveType)
    public enum DriveType : Int32
  • The value return from DriveInfo.userMode. Indicates whether user was a driver or passenger.

    See more

    Declaration

    Swift

    @objc(ZDUserMode)
    public enum UserMode : Int32
  • The types of insurance period in Zendrive

    Each drive belongs to exactly one of these insurance periods.

    See more

    Declaration

    Swift

    @objc(ZDInsurancePeriod)
    public enum InsurancePeriod : Int32
  • The types of phone positions during a trip.

    See more

    Declaration

    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 more

    Declaration

    Swift

    @objc(ZDServiceLevel)
    public enum ServiceLevel : Int32
  • Zendrive follows the star rating system, under which five star defined as the best rating with one being the worst.

    See more

    Declaration

    Swift

    @objc(ZDStarRating)
    public enum StarRating : Int32
  • The value return from TripWarning.warning. Enum representing warnings detected for the current drive.

    See more

    Declaration

    Swift

    @objc(ZDTripWarningType)
    public enum TripWarningType : Int32
  • Status of the debug upload request. As received in the delegate.

    See more

    Declaration

    Swift

    @objc(ZDDebugUploadStatus)
    public enum DebugUploadStatus : Int32
  • Error returned as code to NSError from Zendrive public APIs in case of failures.

    See more

    Declaration

    Swift

    @objc(ZDZendriveError)
    public enum ZendriveError : Int32
  • The category that best indicates the type of trip

    See more

    Declaration

    Swift

    @objc(ZDDriveCategory)
    public enum DriveCategory : UInt