Classes

The following classes are available globally.

  • Zendrive Object.

    See more

    Declaration

    Objective-C

    @interface Zendrive : NSObject
  • ZendriveAccidentInfo

    Wrapper for meta-information related to an accident detected by the SDK.

    See more

    Declaration

    Objective-C

    @interface ZendriveAccidentInfo : NSObject
  • Utility class which helps in uploading data required for debugging Zendrive SDK related issues.

    See more

    Declaration

    Objective-C

    @interface ZendriveDebug : NSObject
  • ZendriveDriveInfo

    Wrapper for meta-information related to a drive.

    See more

    Declaration

    Objective-C

    @interface ZendriveDriveInfo : NSObject
  • Information about a drive that was resumed in the Zendrive SDK.

    This is called after the drive recording resumes after a gap. The gap may occur due to an application restart by the OS, application kill and restart by a user, an application crash etc.

    See more

    Declaration

    Objective-C

    @interface ZendriveDriveResumeInfo : NSObject
  • Driving Behaviour scores for a drive.

    The scores are expressed as a number between 0 to 100 and will be -1 if not available.

    High scores indicate safe driving and low scores reflect hazardous or risky driving patterns. Preventive or corrective actions should be prescribed in extreme cases.

    More information is available here

    See more

    Declaration

    Objective-C

    @interface ZendriveDriveScore : NSObject
  • Additional attributes of a Zendrive driver.

    The application can specify both predefined and custom attributes for a driver. These attributes are associated with a SDK driverId at SDK initialization time. In addition to predefined special attributes, up to 4 custom key value attributes can be associated with a driver using the Zendrive SDK.

    Warning

    All attribute keys can be atmost 64 characters in length.

    Warning

    All attribute values can be atmost 1024 characters in length.
    See more

    Declaration

    Objective-C

    @interface ZendriveDriverAttributes : NSObject <NSCopying>
  • Represents ratings associated with the various event types for a trip. Higher rating for an event represents safe driving behaviour with respect to that event. For cases where rating is absent, ZendriveStarRatingNA is reported.

    See more

    Declaration

    Objective-C

    @interface ZendriveEventRatings : NSObject
  • Applications which want to record Fairmatic insurance periods for a driver may use these APIs.

    All drives (automatically detected or manually started) when a period is in progress will be tagged with the period id. This period id will be made available in the reports and API that Fairmatic provides via Zendrive.

    Only one period can be active at a time. Switching periods or calling +stopPeriod: stops any active drives (automatic or manual). A drive with multiple insurance periods will be split into multiple trips for different insurance periods.

    See more

    Declaration

    Objective-C

    @interface ZendriveInsurance : NSObject
  • Represents the current state of the Zendrive SDK.

    See more

    Declaration

    Objective-C

    @interface ZendriveState : NSObject
  • This class contains methods that mock Zendrive’s functionality for testing purposes.

    See more

    Declaration

    Objective-C

    @interface ZendriveTest : NSObject