LaneIndicationComponent
@objc(MBLaneIndicationComponent)
open class LaneIndicationComponent : NSObject, ComponentRepresentable
A component that represents a lane representation of an instruction.
-
An array indicating which directions you can go from a lane (left, right, or straight).
If the value is
[LaneIndication.left", LaneIndication.straightAhead]
, the driver can go left or straight ahead from that lane. This is only set when thecomponent
is alane
.Declaration
Swift
@objc public var indications: LaneIndication
-
The boolean that indicates whether the lane can be used to complete the maneuver.
If multiple lanes are active, then they can all be used to complete the upcoming maneuver. This value is set to
false
by default.Declaration
Swift
@objc public var isUsable: Bool
-
Initializes a new visual instruction component object that displays the given information.
Declaration
Swift
@objc public init(indications: LaneIndication, isUsable: Bool)
Parameters
indications
The directions to go from a lane component.
isUsable
The flag to indicate that the upcoming maneuver can be completed with a lane component.