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
iOS Documentation
SDLAlertManeuver

SDLAlertManeuver Class Reference

Section Contents

Overview

Shows a SDLShowConstantTBT message with an optional voice command. This message is shown as an overlay over the display’s base screen.

@since SmartDeviceLink 1.0

-initWithTTS:softButtons:

Convenience init to create an alert maneuver with required parameters

Objective-C

- (nonnull instancetype)initWithTTS:(nullable NSString *)ttsText
                        softButtons:
                            (nullable NSArray<SDLSoftButton *> *)softButtons;

Swift

init(tts ttsText: String?, softButtons: [SDLSoftButton]?)

Parameters

ttsText

The text to speak

softButtons

An array of soft buttons

Return Value

An SDLAlertManeuver object

-initWithTTSChunks:softButtons:

Convenience init to create an alert maneuver with all parameters

Objective-C

- (nonnull instancetype)
    initWithTTSChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks
          softButtons:(nullable NSArray<SDLSoftButton *> *)softButtons;

Swift

init(ttsChunks: [SDLTTSChunk]?, softButtons: [SDLSoftButton]?)

Parameters

ttsChunks

An array of text chunks

softButtons

An array of soft buttons

Return Value

An SDLAlertManeuver object

ttsChunks

An array of text chunks.

Optional, Array of SDLTTSChunk, Array length 1 - 100

See

SDLTTSChunk

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLTTSChunk *> *ttsChunks;

Swift

var ttsChunks: [SDLTTSChunk]? { get set }

softButtons

An array of soft buttons. If omitted on supported displays, only the system defined “Close” SoftButton shall be displayed.

Optional, Array of SDLSoftButton, Array length 0 - 3

See

SDLSoftButton

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLSoftButton *> *softButtons;

Swift

var softButtons: [SDLSoftButton]? { get set }
View on GitHub.com
Previous Section Next Section