Classes
The following classes are available globally.
-
Zendrive Object.
See moreDeclaration
Objective-C
@interface Zendrive : NSObject
-
ZendriveAccidentInfo
Wrapper for meta-information related to an accident detected by the SDK.
See moreDeclaration
Objective-C
@interface ZendriveAccidentInfo : NSObject
-
Information about the active drive if any.
See moreDeclaration
Objective-C
@interface ZendriveActiveDriveInfo : NSObject
-
This contains the fully analyzed results for a drive, this is returned from
-[ZendriveDelegateProtocol processAnalysisOfDrive:]
callback for all the trips with the value ofZendriveDriveInfo.driveType
not set toZendriveDriveType.ZendriveDriveTypeInvalid
.The data of this type will always be of equal or better quality than
ZendriveEstimatedDriveInfo
returned from-[ZendriveDelegateProtocol processEndOfDrive:]
Typically
-[ZendriveDelegateProtocol processAnalysisOfDrive:]
will be fired within a few seconds after-[ZendriveDelegateProtocol processEndOfDrive:]
callback but in some rare cases this delay can be really large depending on phone network conditions.The callback for this
-[ZendriveDelegateProtocol processAnalysisOfDrive:]
will be fired in trip occurrence sequence, i.e. from oldest trip to the latest trip.Declaration
Objective-C
@interface ZendriveAnalyzedDriveInfo : ZendriveDriveInfo
-
Wrapper to describe a bluetooth device.
See moreDeclaration
Objective-C
@interface ZendriveBluetoothDevice : NSObject
-
Utility class which helps in uploading data required for debugging Zendrive SDK related issues.
See moreDeclaration
Objective-C
@interface ZendriveDebug : NSObject
-
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 moreDeclaration
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 moreDeclaration
Objective-C
@interface ZendriveDriveScore : NSObject
-
Information about start of a drive.
See moreDeclaration
Objective-C
@interface ZendriveDriveStartInfo : 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.Declaration
Objective-C
@interface ZendriveDriverAttributes : NSObject <NSCopying>
-
This contains the best estimated results for a drive, this is returned from
-[ZendriveDelegateProtocol processEndOfDrive:]
callback.The data of this type will always be of same or little bad quality than
ZendriveAnalyzedDriveInfo
returned from-[ZendriveDelegateProtocol processAnalysisOfDrive:]
All drives with driveType not set to
ZendriveDriveTypeInvalid
will get a corresponding-[ZendriveDelegateProtocol processAnalysisOfDrive:]
callback.Typically
-[ZendriveDelegateProtocol processAnalysisOfDrive:]
will be fired within a few seconds after-[ZendriveDelegateProtocol processEndOfDrive:]
callback but in some rare cases this delay can be really large depending on phone network conditions.Declaration
Objective-C
@interface ZendriveEstimatedDriveInfo : ZendriveDriveInfo
-
A valid object of this class is returned in
See moreZendriveEvent.speedingData
wheneverZendriveEvent.eventType
is equal toZendriveEventOverSpeeding
.Declaration
Objective-C
@interface ZendriveSpeedingData : NSObject
-
Represents a driving behavior event like phone use, aggressive acceleration etc. It is part of
See moreZendriveDriveInfo
object of-[ZendriveDelegateProtocol processEndOfDrive:]
callback.Declaration
Objective-C
@interface ZendriveEvent : NSObject
-
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,
See moreZendriveStarRatingNA
is reported.Declaration
Objective-C
@interface ZendriveEventRatings : NSObject
-
Wrapper for extrapolated details for a drive.
See moreDeclaration
Objective-C
@interface ZendriveExtrapolationDetails : 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
See more+stopPeriod:
stops any active drives (automatic or manual). A drive with multiple insurance periods will be split into multiple trips for different insurance periods.Declaration
Objective-C
@interface ZendriveInsurance : NSObject
-
Represents a geographical coordinate.
See moreDeclaration
Objective-C
@interface ZendriveLocationPoint : NSObject
-
This class contains parameters required by
See more+[ZendriveTest raiseMockAccidentUsingConfig:]
during setup.Declaration
Objective-C
@interface ZendriveMockAccidentConfig : NSObject <NSCopying>
-
Undocumented
See moreDeclaration
Objective-C
@interface ZendrivePausedReason : NSObject @property (nonatomic, assign) ZendrivePausedReasonEnum pausedReason; -(id _Nonnull)initWithZDRZDRPauseTrackingReason:(NSInteger)pausedReason; @end
-
Wrapper for beacons scanned using
See more+[ZendriveVehicleTagging: getNearbyBeacons:uuid:major:minor:completionHandler:]
.Declaration
Objective-C
@interface ZendriveScannedBeaconInfo : NSObject
-
This class surfaces errors in device or application settings that affects trip detection in the SDK.
See moreDeclaration
Objective-C
@interface ZendriveSettings : NSObject
-
This class represent an error in device or application settings that is affecting the ability of the SDK to detect trips.
See moreDeclaration
Objective-C
@interface ZendriveSettingsError : NSObject
-
Represents a shift comprising of shift intervals over the week.
See moreDeclaration
Objective-C
@interface ZendriveShiftDetail : NSObject
-
Wrapper for a single business hour interval.
See moreDeclaration
Objective-C
@interface ZendriveShiftInterval : NSObject
-
Represents a particular day and time in a weekly schedule. The shift time is represented in 24 hour time format.
See moreDeclaration
Objective-C
@interface ZendriveShiftTime : NSObject
-
Represents the current state of the Zendrive SDK.
See moreDeclaration
Objective-C
@interface ZendriveState : NSObject
-
This class contains methods that mock Zendrive’s functionality for testing purposes.
See moreDeclaration
Objective-C
@interface ZendriveTest : NSObject
-
Represents a single warning that might have occurred during your trip. A collection of these warnings are provided using the
See more-[ZendriveDelegateProtocol processAnalysisOfDrive:]
callback.Declaration
Objective-C
@interface ZendriveTripWarning : NSObject
-
Wrapper for meta information related to a vehicle.
See moreDeclaration
Objective-C
@interface ZendriveVehicleInfo : NSObject
-
This class manages association and dissociation of vehicles to ZendriveSDK.
See moreDeclaration
Objective-C
@interface ZendriveVehicleTagging : NSObject
-
The vehicle tagging details of a drive. These details are provided for drives that are tagged by a vehicle. For a given vehicle, both bluetooth car stereo and beacon can be used to tag with the same `
vehicleId
.In case a drive is tagged using both bluetooth car stereo and beacon having different associated vehicleIds, the bluetooth car stereo vehicleId supersedes the beacon vehicleId.
See moreDeclaration
Objective-C
@interface ZendriveVehicleTaggingDetails : NSObject