java.lang.Object | |
↳ | android.support.v17.leanback.widget.Action |
Known Direct Subclasses |
An action contains one or two lines of text, an optional image and an optional id. It may also be invoked by one or more keycodes.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for an Action.
| |||||||||||
Constructor for an Action.
| |||||||||||
Constructor for an Action.
| |||||||||||
Constructor for an Action.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a keycode used to invoke this Action.
| |||||||||||
Returns the icon drawable for this Action.
| |||||||||||
Returns the id for this Action.
| |||||||||||
Returns the first line label for this Action.
| |||||||||||
Returns the second line label for this Action.
| |||||||||||
Removes a keycode used to invoke this Action.
| |||||||||||
Returns true if the Action should respond to the given keycode.
| |||||||||||
Sets the icon drawable for this Action.
| |||||||||||
Sets the id for this Action.
| |||||||||||
Sets the first line label for this Action.
| |||||||||||
Sets the second line label for this Action.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor for an Action.
id | The id of the Action. |
---|
Constructor for an Action.
id | The id of the Action. |
---|---|
label | The label to display for the Action. |
Constructor for an Action.
id | The id of the Action. |
---|---|
label1 | The label to display on the first line of the Action. |
label2 | The label to display on the second line of the Action. |
Constructor for an Action.
id | The id of the Action. |
---|---|
label1 | The label to display on the first line of the Action. |
label2 | The label to display on the second line of the Action. |
icon | The icon to display for the Action. |
Adds a keycode used to invoke this Action.
Returns the id for this Action.
Removes a keycode used to invoke this Action.
Returns true if the Action should respond to the given keycode.
Sets the id for this Action.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.