Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation
Turn

Turn Class Reference

Constructors

Instance Methods

Constructors

new Turn(parameters)

Initializes an instance of Turn.

Instance Methods

turn.getNavigationText() ⇒ String

Get the NavigationText

Kind: Instance method of Turn
Returns: String - the KEY_NAVIGATION_TEXT value

turn.getTurnIcon() ⇒ Image

Get the TurnIcon

Kind: Instance method of Turn
Returns: Image - the KEY_TURN_ICON value

turn.setNavigationText(text) ⇒ Turn

Set the NavigationText

Kind: Instance method of Turn
Returns: Turn - The class instance for method chaining.

ParamTypeDescription
text String Individual turn text. Must provide at least text or icon for a given turn. - The desired NavigationText. {'string_min_length': 1, 'string_max_length': 500}

turn.setTurnIcon(icon) ⇒ Turn

Set the TurnIcon

Kind: Instance method of Turn
Returns: Turn - The class instance for method chaining.

ParamTypeDescription
icon Image Individual turn icon. Must provide at least text or icon for a given turn. - The desired TurnIcon.
View on GitHub.com
Previous Section Next Section