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
Documentation
SDLTurn

SDLTurn Class Reference

Section Contents

Overview

A struct used in UpdateTurnList for Turn-by-Turn navigation applications

-initWithNavigationText:turnIcon:

Convenience init to UpdateTurnList for navigation

Objective-C

- (nonnull instancetype)initWithNavigationText:
                            (nullable NSString *)navigationText
                                      turnIcon:(nullable SDLImage *)icon;

Swift

init(navigationText: String?, turnIcon icon: SDLImage?)

Parameters

navigationText

Individual turn text. Must provide at least text or icon for a given turn

icon

Individual turn icon. Must provide at least text or icon for a given turn

Return Value

An SDLTurn object

navigationText

Individual turn text. Must provide at least text or icon for a given turn

Objective-C

@property (nonatomic, strong, nullable) NSString *navigationText;

Swift

var navigationText: String? { get set }

turnIcon

Individual turn icon. Must provide at least text or icon for a given turn

Objective-C

@property (nonatomic, strong, nullable) SDLImage *turnIcon;

Swift

var turnIcon: SDLImage? { get set }
View on GitHub.com
Previous Section Next Section