ManeuverRule
public struct ManeuverRule
Defines a single rule that determines how TrackingCameraBehavior reacts to nearby
maneuvers when the current position matches this rule.
-
List of functional road classes for which this rule applies. The list is unordered. When empty, this rule applies to all functional road classes. Defaults to an empty list.
Declaration
Swift
public var functionalRoadClasses: [FunctionalRoadClass] -
List of maneuver actions for which this rule applies. The list is unordered. When empty, this rule applies to all maneuver actions. Defaults to an empty list.
Declaration
Swift
public var maneuverActions: [ManeuverAction] -
The options for this rule. When set to
nil, the camera does not react to maneuvers that match this rule. Defaults tonil.Declaration
Swift
public var maneuverRuleOptions: TrackingCameraBehavior.ManeuverRuleOptions? -
Creates a new instance.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Declaration
Swift
public init(functionalRoadClasses: [FunctionalRoadClass] = [], maneuverActions: [ManeuverAction] = [], maneuverRuleOptions: TrackingCameraBehavior.ManeuverRuleOptions? = nil)