TripWarning

@objc(ZDTripWarning)
public class TripWarning : NSObject

Represents a single warning that might have occurred during your trip. A collection of these warnings are provided using the ZendriveDelegate.processAnalysis(ofDrive:) callback.

  • The type of the trip warning.

    Declaration

    Swift

    @objc
    public private(set) var tripWarningType: TripWarningType
  • Initializer for creating a TripWarning.

    Declaration

    Swift

    @objc
    public init(warning tripWarningType: TripWarningType)

    Parameters

    tripWarningType

    type of warning detected for the current drive.