java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.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 in milliseconds 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
public static final java.lang.String KEY_SCROLLABLE_MESSAGE_BODY
public static final java.lang.String KEY_TIMEOUT
public static final java.lang.String KEY_SOFT_BUTTONS
public static final java.lang.String KEY_CANCEL_ID
Constructs a new ScrollableMessage object
public ScrollableMessage()
Constructs a new ScrollableMessage object indicated by the Hashtable parameter
public ScrollableMessage(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a new ScrollableMessage object
public ScrollableMessage(String scrollableMessageBody)
Sets a Body of text that can include newlines and tabs
public com.smartdevicelink.proxy.rpc.ScrollableMessage setScrollableMessageBody(String scrollableMessageBody)
Gets a Body of text that can include newlines and tabs
public java.lang.String getScrollableMessageBody()
Sets an App defined timeout. Indicates how long of a timeout in milliseconds from the last action
public com.smartdevicelink.proxy.rpc.ScrollableMessage setTimeout(Integer timeout)
Gets an App defined timeout in milliseconds
public java.lang.Integer getTimeout()
Sets App defined SoftButtons.If omitted on supported displays, only the system defined "Close" SoftButton will be displayed
public com.smartdevicelink.proxy.rpc.ScrollableMessage setSoftButtons(java.util.List<com.smartdevicelink.proxy.rpc.SoftButton> softButtons)
Gets App defined soft button
public java.util.List getSoftButtons()
Gets an Integer value representing the cancel ID
public java.lang.Integer getCancelID()
Sets the cancel ID
public com.smartdevicelink.proxy.rpc.ScrollableMessage setCancelID(Integer cancelID)
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 |