Enumerations

The following enumerations are available globally.

  • Confidence measure of the detected accident.

    See more

    Declaration

    Objective-C

    enum ZendriveAccidentConfidence : int {}
  • Severity of the detected accident.

    See more

    Declaration

    Objective-C

    enum ZendriveCollisionSeverity : int {}
  • Direction of Impact of the detected accident.

    See more

    Declaration

    Objective-C

    enum ZendriveDirectionOfImpact : int {}
  • Dictates the functioning of Zendrive’s drive detection.

    See more

    Declaration

    Objective-C

    enum ZendriveDriveDetectionMode : int {}
  • Dictates the region where user’s data will reside.

    See more

    Declaration

    Objective-C

    enum ZendriveRegion : int {}
  • Status of the debug upload request. As received in the delegate.

    See more

    Declaration

    Objective-C

    enum ZendriveDebugUploadStatus : int {}
  • The type of the drive returned from ZendriveDriveInfo.driveType.

    This decides what other ZendriveDriveInfo 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

    Objective-C

    enum ZendriveDriveType : int {}
  • The internal drive type of the drive recorded by the Zendrive SDK.

    See more

    Declaration

    Objective-C

    enum ZendriveInternalDriveTypePreview : int {}
  • The value return from ZendriveDriveInfo.userMode. Indicates whether user was a driver or passenger.

    See more

    Declaration

    Objective-C

    enum ZendriveUserMode : int {}
  • The types of insurance period in Zendrive

    Each drive belongs to exactly one of these insurance periods.

    See more

    Declaration

    Objective-C

    enum ZendriveInsurancePeriod : int {}
  • The types of phone positions during a trip.

    See more

    Declaration

    Objective-C

    enum ZendrivePhonePosition : int {}
  • Enumeration for different service levels supported by Zendrive for a driver. By default, drivers will be assigned to the default service level - ZendriveServiceLevelDefault.

    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 ZendriveServiceLevelDefault irrespective of the service level specified.

    See more

    Declaration

    Objective-C

    enum ZendriveServiceLevel : int {}
  • Type of vehicle used in the drive recorded by the Zendrive SDK. A default vehicle type can be set using -[ZendriveDriverAttributes setVehicleType:]. The detected type is returned to the application in the ZendriveAnalyzedDriveInfo.vehicleType field of the -[ZendriveDelegateProtocol processAnalysisOfDrive:] callback.

    See more

    Declaration

    Objective-C

    enum ZendriveVehicleType : int {}
  • ZendriveError

    Discussion: Error returned as code to NSError from Zendrive public APIs in case of failures.

    See more

    Declaration

    Objective-C

    enum ZendriveError : int {}
  • This is returned in ZendriveEvent.eventSeverity, it represents the severity of event if application for that event type.

    See more

    Declaration

    Objective-C

    enum ZendriveEventSeverity : NSInteger {}
  • This is returned in ZendriveEvent.turnDirection, it represents the turn direction for ZendriveEventHardTurn

    See more

    Declaration

    Objective-C

    enum ZendriveTurnDirection : NSInteger {}
  • The event type as specified in ZendriveEvent.eventType

    See more

    Declaration

    Objective-C

    enum ZendriveEventType : NSInteger {}
  • The category that best indicates the type of trip

    See more

    Declaration

    Objective-C

    enum ZendriveDriveCategory : NSUInteger {}
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(int, ZendrivePausedReasonEnum) {
        ZendrivePausedReasonUser,
        ZendrivePausedReasonBusinessHours,
        ZendrivePausedReasonNotPaused
    }
  • Dictates the reason for is logging SDK Health The SDK health will be recorded when there is any update in permission from last recorded SDK health.

    See more

    Declaration

    Objective-C

    enum ZendriveSDKHealthReason : int {}
  • Error type for ZendriveSettingError

    See more

    Declaration

    Objective-C

    enum ZendriveSettingsErrorType : int {}
  • Enum to represent a day of the week.

    See more

    Declaration

    Objective-C

    enum ZendriveDayOfWeek : int {}
  • Zendrive follows the star rating system, under which five star defined as the best rating with one being the worst.

    See more

    Declaration

    Objective-C

    enum ZendriveStarRating : int {}
  • The value return from ZendriveTripWarning.tripWarningType. Enum representing warnings detected for the current drive.

    See more

    Declaration

    Objective-C

    enum ZendriveTripWarningType : int {}
  • ZendriveVehicleTaggingError

    See more

    Declaration

    Objective-C

    enum ZendriveVehicleTaggingError : int {}