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

Class SoftButtonState

Hierarchy

java.lang.Object

Package
com.smartdevicelink.managers.screen

Overview

SoftButtonState
Defines an individual state for SoftButtonObject.
The states of SoftButtonObject allow the developer to not have to manage multiple SoftButtons that have very similar functionality.
For example, a repeat button in a music app can be thought of as one SoftButtonObject with three typical states: repeat off, repeat 1, and repeat on.

Constructors

SoftButtonState( String name, String text, SdlArtwork artwork )

Creates a new instance of SoftButtonState Note: state names should be different for each SoftButtonObject

public SoftButtonState(String name,String text,SdlArtwork artwork)

Parameters

name
a String value represents name of the state
text
a String represents the text for the state
artwork
an SdlArtwork represents the artwork for the state

Methods

getName()

Get the state name

public java.lang.String getName()

setName( String name )

Set the state name

public void setName(String name)

Parameters

name
a String value represents the name of the state

getSoftButton()

Get the SoftButton for the state

public com.smartdevicelink.proxy.rpc.SoftButton getSoftButton()

getArtwork()

Get the Artwork for the state

public com.smartdevicelink.managers.file.filetypes.SdlArtwork getArtwork()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section