java.lang.Object | |
↳ | android.support.v17.leanback.widget.GuidedAction.Builder |
Builds a GuidedAction
object.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds the GuidedAction corresponding to this Builder.
| |||||||||||
Indicates whether this action is part of a single-select group similar to radio buttons.
| |||||||||||
Indicates whether this action is initially checked.
| |||||||||||
Sets the description for this action.
| |||||||||||
Indicates whether this action is enabled.
| |||||||||||
Indicates whether this action has a next state and should display a chevron.
| |||||||||||
Sets the action's icon drawable.
| |||||||||||
Sets the action's icon drawable by retrieving it by resource ID from the specified
context.
| |||||||||||
Sets the ID associated with this action.
| |||||||||||
Indicates whether this action is for information purposes only and cannot be clicked.
| |||||||||||
Sets the intent associated with this action.
| |||||||||||
Indicates whether the title and description are long, and should be displayed
appropriately.
| |||||||||||
Sets the title for this action.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Builds the GuidedAction corresponding to this Builder.
Indicates whether this action is part of a single-select group similar to radio buttons. When one item in a check set is checked, all others with the same check set ID will be unchecked automatically.
checkSetId | The check set ID, or {@link #NO_CHECK_SET) to indicate no check set. |
---|
Indicates whether this action is initially checked.
checked | Whether this action is checked. |
---|
Sets the description for this action. The description is typically a longer string providing extra information on what the action will do.
description | The description for this action. |
---|
Indicates whether this action is enabled. If not enabled, an action cannot be clicked.
enabled | Whether the action is enabled. |
---|
Indicates whether this action has a next state and should display a chevron.
hasNext | Whether this action has a next state. |
---|
Sets the action's icon drawable.
icon | The drawable for the icon associated with this action. |
---|
Sets the action's icon drawable by retrieving it by resource ID from the specified
context. This is a convenience function that simply looks up the drawable and calls
icon(Drawable)
.
iconResourceId | The resource ID for the icon associated with this action. |
---|---|
context | The context whose resource ID should be retrieved. |
Sets the ID associated with this action. The ID can be any value the client wishes; it is typically used to determine what to do when an action is clicked.
id | The ID to associate with this action. |
---|
Indicates whether this action is for information purposes only and cannot be clicked.
infoOnly | Whether this action has a next state. |
---|
Sets the intent associated with this action. Clients would typically fire this intent directly when the action is clicked.
intent | The intent associated with this action. |
---|
Indicates whether the title and description are long, and should be displayed appropriately.
multilineDescription | Whether this action has a multiline description. |
---|
Sets the title for this action. The title is typically a short string indicating the action to be taken on click, e.g. "Continue" or "Cancel".
title | The title for this action. |
---|