DMEvent
@objcMembers
public class DMEvent : NSObject, Codable
Drive event.
-
Event type(see {@link DMEventType}).
Declaration
Swift
public let eventType: DMEventType -
The time when the event was detected.
Declaration
Swift
public let eventTime: Date -
The location when the event was detected.
Declaration
Swift
public let eventLocation: TNLocation -
Undocumented
Declaration
Swift
public let eventLevel: String? -
Undocumented
Declaration
Swift
public let eventDetails: [EventItem]? -
Distance in meters
Declaration
Swift
public let eventDistance: Double -
Duration in second
Declaration
Swift
public let eventDuration: Double -
The delta change for current event
Declaration
Swift
public let eventDeltaChange: Double -
The reason in gereration event
Declaration
Swift
public let eventReason: String? -
init(eventType:eventTime: eventLocation: eventLevel: eventDetails: eventDistance: eventDuration: eventDeltaChange: eventReason: ) Undocumented
Declaration
Swift
public init(eventType: DMEventType, eventTime: Date, eventLocation: TNLocation, eventLevel: String? = nil, eventDetails: [EventItem]? = nil, eventDistance: Double = 0.0, eventDuration: Double = 0.0, eventDeltaChange: Double = 0.0, eventReason: String? = nil) -
Declaration
Swift
public required init(from decoder: Decoder) throws
DMEvent Class Reference