java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.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 |
public static final java.lang.String KEY_ALERT_TEXT_1
public static final java.lang.String KEY_ALERT_TEXT_2
public static final java.lang.String KEY_ALERT_ICON
public static final java.lang.String KEY_TTS_CHUNKS
public static final java.lang.String KEY_DURATION
public static final java.lang.String KEY_SOFT_BUTTONS
public static final java.lang.String KEY_CANCEL_ID
Constructs a new SubtleAlert object
public SubtleAlert()
Constructs a new SubtleAlert object indicated by the Hashtable parameter
public SubtleAlert(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Sets the alertText1.
public com.smartdevicelink.proxy.rpc.SubtleAlert setAlertText1(String alertText1)
Gets the alertText1.
public java.lang.String getAlertText1()
Sets the alertText2.
public com.smartdevicelink.proxy.rpc.SubtleAlert setAlertText2(String alertText2)
Gets the alertText2.
public java.lang.String getAlertText2()
Sets the alertIcon.
public com.smartdevicelink.proxy.rpc.SubtleAlert setAlertIcon(Image alertIcon)
Gets the alertIcon.
public com.smartdevicelink.proxy.rpc.Image getAlertIcon()
Sets the ttsChunks.
public com.smartdevicelink.proxy.rpc.SubtleAlert setTtsChunks(java.util.List<com.smartdevicelink.proxy.rpc.TTSChunk> ttsChunks)
Gets the ttsChunks.
public java.util.List getTtsChunks()
Sets the duration.
public com.smartdevicelink.proxy.rpc.SubtleAlert setDuration(Integer duration)
Gets the duration.
public java.lang.Integer getDuration()
Sets the softButtons.
public com.smartdevicelink.proxy.rpc.SubtleAlert setSoftButtons(java.util.List<com.smartdevicelink.proxy.rpc.SoftButton> softButtons)
Gets the softButtons.
public java.util.List getSoftButtons()
Sets the cancelID.
public com.smartdevicelink.proxy.rpc.SubtleAlert setCancelID(Integer cancelID)
Gets the cancelID.
public java.lang.Integer getCancelID()
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCRequest | getCorrelationID, setCorrelationID, setOnRPCResponseListener, getOnRPCResponseListener |
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |