java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCRequest
If connecting to SDL Core v.6.0+, the slider can be canceled programmatically using the `cancelID`. On older versions of SDL Core, the slider will persist until the user has interacted with the slider or the specified timeout has elapsed.
Function Group: Base
HMILevel needs to be FULL
Parameter List
Param Name | Type | Description | Req. | Notes | Version Available |
---|---|---|---|---|---|
numTicks | Integer | Number of selectable items on a horizontal axis. | Y | Minvalue=2; Maxvalue=26 | SmartDeviceLink 2.0 |
position | Integer | Initial position of slider control (cannot exceed numTicks), | Y | Minvalue=1; Maxvalue=26 | SmartDeviceLink 2.0 |
sliderHeader | String | Text header to display | N | Maxlength=500 | SmartDeviceLink 2.0 |
sliderFooter | Integer | Text footer to display (meant to display min/max threshold descriptors). For a static text footer, only one footer string shall be provided in the array. For a dynamic text footer, the number of footer text string in the array must match the numTicks value.For a dynamic text footer, text array string should correlate with potential slider position index.If omitted on supported displays, no footer text shall be displayed. |
N | Maxlength=500; Minvalue=1; Maxvalue=26 | SmartDeviceLink 2.0 |
timeout | String | App defined timeout. Indicates how long of a timeout in milliseconds from the last action (i.e. sliding control resets timeout). If omitted, the value is set to 10000. | N | Minvalue=0; Maxvalue=65535; Defvalue= 10000 | SmartDeviceLink 2.0 |
cancelID | Integer | An ID for this specific slider to allow cancellation through the `CancelInteraction` RPC. | N | SmartDeviceLink 6.0 |
Response
Non-default Result Codes:
SAVED
INVALID_DATA
OUT_OF_MEMORY
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
DISALLOWED
UNSUPPORTED_RESOURCE
REJECTED
ABORTED
public static final java.lang.String KEY_NUM_TICKS
public static final java.lang.String KEY_SLIDER_HEADER
public static final java.lang.String KEY_SLIDER_FOOTER
public static final java.lang.String KEY_POSITION
public static final java.lang.String KEY_TIMEOUT
public static final java.lang.String KEY_CANCEL_ID
Constructs a new Slider object
public Slider()
Constructs a new Slider object indicated by the Hashtable parameter
public Slider(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a new Slider object \
public Slider(Integer numTicks,Integer position,String sliderHeader)
Sets a number of selectable items on a horizontal axis
public com.smartdevicelink.proxy.rpc.Slider setNumTicks(Integer numTicks)
Gets a number of selectable items on a horizontal axis
public java.lang.Integer getNumTicks()
Sets an Initial position of slider control
public com.smartdevicelink.proxy.rpc.Slider setPosition(Integer position)
Gets an Initial position of slider control
public java.lang.Integer getPosition()
Sets a text header to display
public com.smartdevicelink.proxy.rpc.Slider setSliderHeader(String sliderHeader)
Gets a text header to display
public java.lang.String getSliderHeader()
Sets a text footer to display
public com.smartdevicelink.proxy.rpc.Slider setSliderFooter(java.util.List<java.lang.String> sliderFooter)
Gets a text footer to display
public java.util.List getSliderFooter()
Sets an App defined timeout in milliseconds
public com.smartdevicelink.proxy.rpc.Slider setTimeout(Integer timeout)
Gets an App defined timeout in milliseconds
public java.lang.Integer getTimeout()
Gets an Integer value representing the cancel ID
public java.lang.Integer getCancelID()
Sets the cancel ID
public com.smartdevicelink.proxy.rpc.Slider 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 |