public class SubtleAlert extends RPCRequest
Parameter List
| Param Name | Type | Description | Required | Notes | Version Available |
|---|---|---|---|---|---|
| alertText1 | String | The first line of the alert text field | N | Max Value: 500 | |
| alertText2 | String | The second line of the alert text field | N | Max Value: 500 | |
| alertIcon | Image | Image to be displayed for the corresponding alert. See Image. If omitted on supported displays, no (or the default if applicable) icon should be displayed. | N | ||
| ttsChunks | List |
An array of text chunks of type TTSChunk. See TTSChunk. The array must have at least one item. | N | Min Value: 1; Max Value: 100 | |
| duration | Integer | Timeout in milliseconds. Typical timeouts are 3-5 seconds. If omitted, timeout is set to5s. | N | Min Value: 3000; Max Value: 10000; Default Value: 5000 | |
| softButtons | List |
App defined SoftButtons. If omitted on supported displays, the displayed alert shall not have any SoftButtons. | N | Min Value: 0; Max Value: 2 | |
| cancelID | Integer | An ID for this specific alert to allow cancellation through the `CancelInteraction` RPC. | N |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ALERT_ICON |
static String |
KEY_ALERT_TEXT_1 |
static String |
KEY_ALERT_TEXT_2 |
static String |
KEY_CANCEL_ID |
static String |
KEY_DURATION |
static String |
KEY_SOFT_BUTTONS |
static String |
KEY_TTS_CHUNKS |
onResponseListenerfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
SubtleAlert()
Constructs a new SubtleAlert object
|
SubtleAlert(Hashtable<String,Object> hash)
Constructs a new SubtleAlert object indicated by the Hashtable parameter
|
| Modifier and Type | Method and Description |
|---|---|
Image |
getAlertIcon()
Gets the alertIcon.
|
String |
getAlertText1()
Gets the alertText1.
|
String |
getAlertText2()
Gets the alertText2.
|
Integer |
getCancelID()
Gets the cancelID.
|
Integer |
getDuration()
Gets the duration.
|
List<SoftButton> |
getSoftButtons()
Gets the softButtons.
|
List<TTSChunk> |
getTtsChunks()
Gets the ttsChunks.
|
SubtleAlert |
setAlertIcon(Image alertIcon)
Sets the alertIcon.
|
SubtleAlert |
setAlertText1(String alertText1)
Sets the alertText1.
|
SubtleAlert |
setAlertText2(String alertText2)
Sets the alertText2.
|
SubtleAlert |
setCancelID(Integer cancelID)
Sets the cancelID.
|
SubtleAlert |
setDuration(Integer duration)
Sets the duration.
|
SubtleAlert |
setSoftButtons(List<SoftButton> softButtons)
Sets the softButtons.
|
SubtleAlert |
setTtsChunks(List<TTSChunk> ttsChunks)
Sets the ttsChunks.
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_ALERT_TEXT_1
public static final String KEY_ALERT_TEXT_2
public static final String KEY_ALERT_ICON
public static final String KEY_TTS_CHUNKS
public static final String KEY_DURATION
public static final String KEY_SOFT_BUTTONS
public static final String KEY_CANCEL_ID
public SubtleAlert setAlertText1(String alertText1)
alertText1 - The first line of the alert text fieldpublic String getAlertText1()
public SubtleAlert setAlertText2(String alertText2)
alertText2 - The second line of the alert text fieldpublic String getAlertText2()
public SubtleAlert setAlertIcon(Image alertIcon)
alertIcon - Image to be displayed for the corresponding alert. See Image. If omitted on supported
displays, no (or the default if applicable) icon should be displayed.public Image getAlertIcon()
public SubtleAlert setTtsChunks(List<TTSChunk> ttsChunks)
ttsChunks - An array of text chunks of type TTSChunk. See TTSChunk. The array must have at least one
item.public List<TTSChunk> getTtsChunks()
public SubtleAlert setDuration(Integer duration)
duration - Timeout in milliseconds. Typical timeouts are 3-5 seconds. If omitted, timeout is set to
5s.public Integer getDuration()
public SubtleAlert setSoftButtons(List<SoftButton> softButtons)
softButtons - App defined SoftButtons. If omitted on supported displays, the displayed alert shall not
have any SoftButtons.public List<SoftButton> getSoftButtons()
public SubtleAlert setCancelID(Integer cancelID)
cancelID - An ID for this specific alert to allow cancellation through the `CancelInteraction` RPC.public Integer getCancelID()