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

SoftButtonCapabilities Class Reference

Constructors

Instance Methods

Constructors

new SoftButtonCapabilities(parameters)

Initalizes an instance of SoftButtonCapabilities.

Instance Methods

softButtonCapabilities.getImageSupported() ⇒ Boolean

Get the ImageSupported

Kind: Instance method of SoftButtonCapabilities
Returns: Boolean - the KEY_IMAGE_SUPPORTED value

softButtonCapabilities.getLongPressAvailable() ⇒ Boolean

Get the LongPressAvailable

Kind: Instance method of SoftButtonCapabilities
Returns: Boolean - the KEY_LONG_PRESS_AVAILABLE value

softButtonCapabilities.getShortPressAvailable() ⇒ Boolean

Get the ShortPressAvailable

Kind: Instance method of SoftButtonCapabilities
Returns: Boolean - the KEY_SHORT_PRESS_AVAILABLE value

softButtonCapabilities.getTextSupported() ⇒ Boolean

Get the TextSupported

Kind: Instance method of SoftButtonCapabilities
Returns: Boolean - the KEY_TEXT_SUPPORTED value

softButtonCapabilities.getUpDownAvailable() ⇒ Boolean

Get the UpDownAvailable

Kind: Instance method of SoftButtonCapabilities
Returns: Boolean - the KEY_UP_DOWN_AVAILABLE value

softButtonCapabilities.setImageSupported(supported) ⇒ SoftButtonCapabilities

Set the ImageSupported

Kind: Instance method of SoftButtonCapabilities
Returns: SoftButtonCapabilities - The class instance for method chaining.

ParamTypeDescription
supported Boolean The button supports referencing a static or dynamic image. - The desired ImageSupported.

softButtonCapabilities.setLongPressAvailable(available) ⇒ SoftButtonCapabilities

Set the LongPressAvailable

Kind: Instance method of SoftButtonCapabilities
Returns: SoftButtonCapabilities - The class instance for method chaining.

ParamTypeDescription
available Boolean The button supports a LONG press. Whenever the button is pressed long, - The desired LongPressAvailable. onButtonPressed( LONG) will be invoked.

softButtonCapabilities.setShortPressAvailable(available) ⇒ SoftButtonCapabilities

Set the ShortPressAvailable

Kind: Instance method of SoftButtonCapabilities
Returns: SoftButtonCapabilities - The class instance for method chaining.

ParamTypeDescription
available Boolean The button supports a short press. Whenever the button is pressed short, - The desired ShortPressAvailable. onButtonPressed( SHORT) will be invoked.

softButtonCapabilities.setTextSupported(supported) ⇒ SoftButtonCapabilities

Set the TextSupported

Kind: Instance method of SoftButtonCapabilities
Returns: SoftButtonCapabilities - The class instance for method chaining.

ParamTypeDescription
supported Boolean The button supports the use of text. If not included, the default value should be - The desired TextSupported. considered true that the button will support text.

softButtonCapabilities.setUpDownAvailable(available) ⇒ SoftButtonCapabilities

Set the UpDownAvailable

Kind: Instance method of SoftButtonCapabilities
Returns: SoftButtonCapabilities - The class instance for method chaining.

ParamTypeDescription
available Boolean The button supports "button down" and "button up". Whenever the button is pressed, - The desired UpDownAvailable. onButtonEvent( DOWN) will be invoked. Whenever the button is released, onButtonEvent( UP) will be invoked.
View on GitHub.com
Previous Section Next Section