public class ScrollableMessage extends RPCRequest
If connecting to SDL Core v.6.0+, the scrollable message can be canceled programmatically using the `cancelID`. On older versions of SDL Core, the scrollable message will persist until the user has interacted with the scrollable message or the specified timeout has elapsed.
Function Group: ScrollableMessage
HMILevel needs to be FULL
Parameter List
| Name | Type | Description | Reg. | Notes | Version |
|---|---|---|---|---|---|
| scrollableMessageBody | String | Body of text that can include newlines and tabs. | Y | SmartDevice Link 1.0 | |
| timeout | Integer | App defined timeout. Indicates how long of a timeout from the last action (i.e. scrolling message resets timeout). | N | minValue=1000; maxValue=65535; defValue=30000 | SmartDevice Link 1.0 |
| softButtons | SoftButton | App defined SoftButtons. If omitted on supported displays, only the system defined "Close" SoftButton will be displayed. | N | minsize=0; maxsize=8 | SmartDevice Link 1.0 |
| cancelID | Integer | An ID for this specific ScrollableMessage to allow cancellation through the `CancelInteraction` RPC. | N | SmartDeviceLink 6.0 |
Response
Non-default Result Codes:SUCCESS
INVALID_DATA
OUT_OF_MEMORY
CHAR_LIMIT_EXCEEDED
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
DISALLOWED
UNSUPPORTED_RESOURCE
REJECTED
ABORTED
SoftButton| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CANCEL_ID |
static String |
KEY_SCROLLABLE_MESSAGE_BODY |
static String |
KEY_SOFT_BUTTONS |
static String |
KEY_TIMEOUT |
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 |
|---|
ScrollableMessage()
Constructs a new ScrollableMessage object
|
ScrollableMessage(Hashtable<String,Object> hash)
Constructs a new ScrollableMessage object indicated by the Hashtable
parameter
|
ScrollableMessage(String scrollableMessageBody)
Constructs a new ScrollableMessage object
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCancelID()
Gets an Integer value representing the cancel ID
|
String |
getScrollableMessageBody()
Gets a Body of text that can include newlines and tabs
|
List<SoftButton> |
getSoftButtons()
Gets App defined soft button
|
Integer |
getTimeout()
Gets an App defined timeout
|
ScrollableMessage |
setCancelID(Integer cancelID)
Sets the cancel ID
|
ScrollableMessage |
setScrollableMessageBody(String scrollableMessageBody)
Sets a Body of text that can include newlines and tabs
|
ScrollableMessage |
setSoftButtons(List<SoftButton> softButtons)
Sets App defined SoftButtons.If omitted on supported displays, only the
system defined "Close" SoftButton will be displayed
|
ScrollableMessage |
setTimeout(Integer timeout)
Sets an App defined timeout.
|
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_SCROLLABLE_MESSAGE_BODY
public static final String KEY_TIMEOUT
public static final String KEY_SOFT_BUTTONS
public static final String KEY_CANCEL_ID
public ScrollableMessage()
public ScrollableMessage(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic ScrollableMessage(@NonNull
String scrollableMessageBody)
scrollableMessageBody - a String value representing the Body of text that can include newlines and tabs public ScrollableMessage setScrollableMessageBody(@NonNull String scrollableMessageBody)
scrollableMessageBody - a String value representing the Body of text that can include
newlines and tabs
Notes: Maxlength=500public String getScrollableMessageBody()
public ScrollableMessage setTimeout(Integer timeout)
timeout - an Integer value representing an App defined timeout
Notes:Minval=0; Maxval=65535;Default=30000public Integer getTimeout()
public ScrollableMessage setSoftButtons(List<SoftButton> softButtons)
softButtons - a Listpublic List<SoftButton> getSoftButtons()
public Integer getCancelID()
public ScrollableMessage setCancelID(Integer cancelID)
cancelID - An Integer ID for this specific scrollable message to allow cancellation through the `CancelInteraction` RPC.