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
mainCauseMain cause of the traffic event.
warningLevelWarning level of the traffic event.
subCauseSub 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?
TomTom SDK for iOS (0.71.1)
Cause