// SDLAlert.h // #import "SDLRPCRequest.h" /** * Shows an alert which typically consists of text-to-speech message and text on the display. At least either alertText1, alertText2 or TTSChunks need to be provided. * * *
* HMILevel needs to be FULL or LIMITED.
* If the app has been granted function group Notification the SDLHMILevel can * also be BACKGROUND
* * @since SDL 1.0 */ @interface SDLAlert : SDLRPCRequest { } /** * Constructs a new SDLAlert object */ - (instancetype)init; /** * Constructs a new SDLAlert object indicated by the dictionary parameter * * @param dict The dictionary to use */ - (instancetype)initWithDictionary:(NSMutableDictionary *)dict; /** * @abstract The String to be displayed in the first field of the display during the Alert * * @discussion Length is limited to what is indicated in *SDLRegisterAppInterface* response * * If omitted, top display line will be cleared * * Text is always centered * * Optional, Max length 500 chars */ @property (strong) NSString *alertText1; /** * @abstract The String to be displayed in the second field of the display during the Alert * * @discussion Only permitted if HMI supports a second display line * * Length is limited to what is indicated in *SDLRegisterAppInterface* response * * If omitted, second display line will be cleared * * Text is always centered * * Optional, Max length 500 chars */ @property (strong) NSString *alertText2; /** * @abstract the String to be displayed in the third field of the display during the Alert * @discussion Only permitted if HMI supports a third display line * * Length is limited to what is indicated in *SDLRegisterAppInterface* response * * If omitted, third display line will be cleared * * Text is always centered * * Optional, Max length 500 chars */ @property (strong) NSString *alertText3; /** * @abstract An array which, taken together, specify what is to be spoken to the user * * Optional, Array of SDLTTSChunk, Array length 1 - 100 * * @see SDLTTSChunk */ @property (strong) NSMutableArray *ttsChunks; /** * @abstract The duration of the displayed portion of the alert, in milliseconds. * * @discussion After this amount of time has passed, the display fields alertText1 and alertText2 will revert to what was displayed in those fields before the alert began. * * Typical timeouts are 3 - 5 seconds * * If omitted, the timeout is set to 5 seconds * * Optional, Integer, 3000 - 10000 */ @property (strong) NSNumber *duration; /** * @abstract Whether the alert tone should be played before the TTS (if any) is spoken. * * @discussion If ommitted, no tone is played * * Optional, Boolean */ @property (strong) NSNumber *playTone; /** * @abstract If supported on the given platform, the alert GUI will include some sort of animation indicating that loading of a feature is progressing. e.g. a spinning wheel or hourglass, etc. * * Optional, Boolean * * @since SmartDeviceLink 2.0 */ @property (strong) NSNumber *progressIndicator; /** * @abstract App defined SoftButtons. * * @discussion If omitted on supported displays, the displayed alert shall not have any SoftButtons * * Optional, Array of SDLSoftButton, Array size 0 - 4 * * @see SDLSoftButton */ @property (strong) NSMutableArray *softButtons; @end