AlertViewAlertAudioDataNumberSdlArtworkStringArray.<SoftButtonObject>StringStringNumberBooleanAlertViewAlertViewAlertViewAlertViewAlertViewAlertViewAlertViewAlertViewAlertViewCancels the alert. If the alert has not yet been sent to Core, it will not be sent. If the alert is already presented on Core, the alert will be immediately dismissed. Canceling an already presented alert will only work if connected to Core versions 6.0+. On older versions of Core, the alert will not be dismissed.
Kind: Instance method of AlertView
AlertViewCreates a deep copy of the object.
Kind: Instance method of AlertView
Returns: AlertView - A deep clone of the object.
AlertAudioDataGet the Audio
Kind: Instance method of AlertView
Returns: AlertAudioData audio - See AlertAudioData.
NumberGet the Timeout
Kind: Instance method of AlertView
Returns: Number - the AlertView._DEFAULT_TIMEOUT value
SdlArtworkGet the AlertIcon
Kind: Instance method of AlertView
Returns: SdlArtwork - the _icon value
StringGet the AlertText2
Kind: Instance method of AlertView
Returns: String - the _secondaryText value
Array.<SoftButtonObject>Get the SoftButtons
Kind: Instance method of AlertView
Returns: Array.<SoftButtonObject> - the _softButtons value
StringGet the AlertText3
Kind: Instance method of AlertView
Returns: String - the _tertiaryText value
StringGet the AlertText1
Kind: Instance method of AlertView
Returns: String - the _text value
NumberGet the Timeout
Kind: Instance method of AlertView
Returns: Number - the timeout value
BooleanGet the ShowWaitIndicator
Kind: Instance method of AlertView
Returns: Boolean - the _showWaitIndicator value
AlertViewSet the Audio
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| audio | AlertAudioData |
See AlertAudioData. |
AlertViewSet this to change the default timeout for all alerts. If a timeout is not set on an individual alert object (or if it is set to 0.0), then it will use this timeout instead. See `timeout` for more details. If this is not set by you, it will default to 5 seconds. The minimum is 3 seconds, the maximum is 10 seconds. If this is set below the minimum, it will be capped at 3 seconds. If this is set above the maximum, it will be capped at 10 seconds.
Kind: Instance method of AlertView
Returns: AlertView - A reference to this instance to support method chaining.
| Param | Type | Description |
|---|---|---|
| defaultTimeout | Number |
Timeout in milliseconds. Typical timeouts are 3-5 seconds. If omitted, timeout is set to 5s. |
AlertViewSet the AlertIcon
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| icon | SdlArtwork |
Image struct determining whether static or dynamic icon. If omitted on supported displays, no (or the default if applicable) icon should be displayed. |
AlertViewSet the AlertText2
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| secondaryText | String |
The second line of the alert text field - The desired AlertText2. {'string_min_length': 1, 'string_max_length': 500} |
AlertViewSet the ShowWaitIndicator
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| showWaitIndicator | Boolean |
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. - The desired ProgressIndicator. |
AlertViewSet the SoftButtons
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| softButtons | Array.<SoftButtonObject> |
App defined SoftButtons. If omitted on supported displays, the displayed alert shall not have any SoftButtons. - The desired SoftButtons. {'array_min_size': 0, 'array_max_size': 4} |
AlertViewSet the AlertText3
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| tertiaryText | String |
The optional third line of the alert text field - The desired AlertText3. {'string_min_length': 1, 'string_max_length': 500} |
AlertViewSet the AlertText1
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| text | String |
The first line of the alert text field - The desired AlertText1. {'string_min_length': 1, 'string_max_length': 500} |
AlertViewSet the Timeout
Kind: Instance method of AlertView
Returns: AlertView - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| timeout | Number |
Timeout in milliseconds. Typical timeouts are 3-5 seconds. If omitted, timeout is set to 5s. - The desired Duration. {'num_min_value': 3000, 'num_max_value': 10000} |