Cause

public struct Cause

Indicates the cause of a traffic event.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Initializes a new instance of Cause.

    Declaration

    Swift

    public init(
        mainCause: CauseCode,
        warningLevel: WarningLevel,
        subCause: Int?
    )

    Parameters

    mainCause

    Main cause of the traffic event.

    warningLevel

    Warning level of the traffic event.

    subCause

    Sub cause code of the traffic event if it exists.

  • Main cause of the traffic event.

    Declaration

    Swift

    public let mainCause: CauseCode
  • Warning level of the traffic event.

    Declaration

    Swift

    public let warningLevel: WarningLevel
  • Sub cause code of the traffic event if it exists.

    Declaration

    Swift

    public let subCause: Int?