Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class ButtonPress

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct
         com.smartdevicelink.proxy.RPCMessage
             com.smartdevicelink.proxy.RPCRequest

Package
com.smartdevicelink.proxy.rpc

Overview

This function allows a remote control type mobile application simulate a hardware button press event.

Fields

KEY_MODULE_TYPE

public static final java.lang.String KEY_MODULE_TYPE
Constant Value
"moduleType"

KEY_BUTTON_NAME

public static final java.lang.String KEY_BUTTON_NAME
Constant Value
"buttonName"

KEY_BUTTON_PRESS_MODE

public static final java.lang.String KEY_BUTTON_PRESS_MODE
Constant Value
"buttonPressMode"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCRequest onResponseListener
com.smartdevicelink.proxy.RPCMessage KEY_REQUEST, KEY_RESPONSE, KEY_NOTIFICATION, KEY_FUNCTION_NAME, KEY_PARAMETERS, KEY_CORRELATION_ID, messageType, parameters, function
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

ButtonPress()

Constructs a new ButtonPress object

public ButtonPress()

ButtonPress( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

Constructs a new ButtonPress object indicated by the Hashtable parameter

public ButtonPress(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Parameters

hash
The Hashtable to use

ButtonPress( ModuleType moduleType, ButtonName buttonName, ButtonPressMode buttonPressMode )

Constructs a new ButtonPress object

public ButtonPress(ModuleType moduleType,ButtonName buttonName,ButtonPressMode buttonPressMode)

Parameters

moduleType
Represents module where the button should be pressed
buttonName
Represents name of supported RC climate or radio button
buttonPressMode
Indicates whether this is a LONG or SHORT button press event.

Methods

getModuleType()

Gets the ModuleType

public com.smartdevicelink.proxy.rpc.enums.ModuleType getModuleType()

setModuleType( ModuleType moduleType )

Sets a ModuleType

public void setModuleType(ModuleType moduleType)

Parameters

moduleType
Represents module where the button should be pressed

getButtonName()

Gets the ButtonName

public com.smartdevicelink.proxy.rpc.enums.ButtonName getButtonName()

setButtonName( ButtonName buttonName )

Sets a ButtonName

public void setButtonName(ButtonName buttonName)

Parameters

buttonName
Represents name of supported RC climate or radio button

getButtonPressMode()

Gets the ButtonPressMode

public com.smartdevicelink.proxy.rpc.enums.ButtonPressMode getButtonPressMode()

setButtonPressMode( ButtonPressMode buttonPressMode )

Sets a ButtonPressMode

public void setButtonPressMode(ButtonPressMode buttonPressMode)

Parameters

buttonPressMode
Indicates whether this is a LONG or SHORT button press event.

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCRequest getCorrelationID, setCorrelationID, setOnRPCResponseListener, getOnRPCResponseListener
com.smartdevicelink.proxy.RPCMessage getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, deserializeJSONObject, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section