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.
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.
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.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)