# GuidedAction.BuilderBase

# GuidedAction.BuilderBase

Artifact:[androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback)  
[View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/GuidedAction.java+class:androidx.leanback.widget.GuidedAction.BuilderBase)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/leanback/widget/GuidedAction.BuilderBase "View this page in Java")

<br />

```
abstract class GuidedAction.BuilderBase<B : GuidedAction.BuilderBase?>
```

<br />

Known direct subclasses  
[GuidedAction.Builder](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.Builder),[GuidedDatePickerAction.BuilderBase](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedDatePickerAction.BuilderBase)  

|--------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
| [GuidedAction.Builder](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.Builder)                             | Builds a[GuidedAction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)object. |
| [GuidedDatePickerAction.BuilderBase](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedDatePickerAction.BuilderBase) | Base Builder class to build GuidedDatePickerAction.                                                                 |

Known indirect subclasses  
[GuidedDatePickerAction.Builder](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedDatePickerAction.Builder)  

|------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|
| [GuidedDatePickerAction.Builder](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedDatePickerAction.Builder) | Builder class to build a GuidedDatePickerAction. |

*** ** * ** ***

Base builder class to build a[GuidedAction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)object. When subclass GuidedAction, you can override this BuilderBase class, implements your build() method which should call[applyValues](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#applyValues(androidx.leanback.widget.GuidedAction)). When using GuidedAction directly, use[Builder](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.Builder).  

|                                                               Parameters                                                                |
|-----------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
| `<B : `[GuidedAction.BuilderBase](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase)`?>` | the type of BuilderBase |

## Summary

|                                                                                                                                          ### Public constructors                                                                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BuilderBase](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#BuilderBase(android.content.Context))`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`)` Creates a BuilderBase for GuidedAction or its subclass. |

|                              ### Public functions                               |
|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `B!`                                                                            | [autoSaveRestoreEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#autoSaveRestoreEnabled(boolean))`(autoSaveRestoreEnabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Explicitly sets auto restore feature on the GuidedAction.                                                                                                                                                                                                                                                                                            |
| `B!`                                                                            | [autofillHints](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#autofillHints(java.lang.String...))`(hints: `[Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!>?)` Sets autofill hints.                                                                                                                                                                                                                                                                     |
| `B!`                                                                            | [checkSetId](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#checkSetId(int))`(checkSetId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Indicates whether this action is part of a single-select group similar to radio buttons or this action is a checkbox.                                                                                                                                                                                                                                                                                |
| `B!`                                                                            | [checked](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#checked(boolean))`(checked: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action is initially checked.                                                                                                                                                                                                                                                                                                                                               |
| `B!`                                                                            | [clickAction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#clickAction(long))`(id: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Construct a clickable action with associated id and auto assign pre-defined title for the action.                                                                                                                                                                                                                                                                                                       |
| `B!`                                                                            | [description](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#description(java.lang.CharSequence))`(description: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?)` Sets the description for this action.                                                                                                                                                                                                                                                                                                                      |
| `B!`                                                                            | [description](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#description(int))`(descriptionResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the description for this action.                                                                                                                                                                                                                                                      |
| `B!`                                                                            | [descriptionEditInputType](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#descriptionEditInputType(int))`(inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action description in editing.                                                                                                                                                                                                                                                |
| `B!`                                                                            | [descriptionEditable](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#descriptionEditable(boolean))`(editable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action's description is editable                                                                                                                                                                                                                                                                                                                  |
| `B!`                                                                            | [descriptionInputType](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#descriptionInputType(int))`(inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action description not in editing.                                                                                                                                                                                                                                                    |
| `B!`                                                                            | [editDescription](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#editDescription(java.lang.CharSequence))`(description: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?)` Sets the optional description text to edit.                                                                                                                                                                                                                                                                                                        |
| `B!`                                                                            | [editDescription](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#editDescription(int))`(descriptionResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the optional description text to edit.                                                                                                                                                                                                                                        |
| `B!`                                                                            | [editInputType](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#editInputType(int))`(inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action title in editing.                                                                                                                                                                                                                                                                            |
| `B!`                                                                            | [editTitle](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#editTitle(java.lang.CharSequence))`(editTitle: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?)` Sets the optional title text to edit.                                                                                                                                                                                                                                                                                                                            |
| `B!`                                                                            | [editTitle](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#editTitle(int))`(editTitleResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the optional title text to edit.                                                                                                                                                                                                                                                            |
| `B!`                                                                            | [editable](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#editable(boolean))`(editable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action title is editable.                                                                                                                                                                                                                                                                                                                                               |
| `B!`                                                                            | [enabled](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#enabled(boolean))`(enabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action is enabled.                                                                                                                                                                                                                                                                                                                                                         |
| `B!`                                                                            | [focusable](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#focusable(boolean))`(focusable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action can take focus.                                                                                                                                                                                                                                                                                                                                               |
| [Context](https://developer.android.com/reference/android/content/Context.html) | [getContext](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#getContext())`()` Returns Context of this Builder.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `B!`                                                                            | [hasEditableActivatorView](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#hasEditableActivatorView(boolean))`(editable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action has a view can be activated to edit, e.g. a DatePicker.                                                                                                                                                                                                                                                                          |
| `B!`                                                                            | [hasNext](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#hasNext(boolean))`(hasNext: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action has a next state and should display a chevron.                                                                                                                                                                                                                                                                                                                      |
| `B!`                                                                            | [icon](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#icon(android.graphics.drawable.Drawable))`(icon: `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)`?)` Sets the action's icon drawable.                                                                                                                                                                                                                                                                                                                                       |
| `B!`                                                                            | [icon](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#icon(int))`(iconResourceId: @`[DrawableRes](https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the action's icon drawable by retrieving it by resource ID from Builder's context.                                                                                                                                                                                                                     |
| `B!`                                                                            | ~~[iconResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#iconResourceId(int,android.content.Context))~~`(iconResourceId: @`[DrawableRes](https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, context: `[Context](https://developer.android.com/reference/android/content/Context.html)`!)` **This function is deprecated.** Use[icon](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#icon(int)). <br /> |
| `B!`                                                                            | [id](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#id(long))`(id: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Sets the ID associated with this action.                                                                                                                                                                                                                                                                                                                                                                                  |
| `B!`                                                                            | [infoOnly](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#infoOnly(boolean))`(infoOnly: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether this action is for information purposes only and cannot be clicked.                                                                                                                                                                                                                                                                                                          |
| `B!`                                                                            | [inputType](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#inputType(int))`(inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action title not in editing.                                                                                                                                                                                                                                                                                |
| `B!`                                                                            | [intent](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#intent(android.content.Intent))`(intent: `[Intent](https://developer.android.com/reference/android/content/Intent.html)`?)` Sets the intent associated with this action.                                                                                                                                                                                                                                                                                                                                               |
| `B!`                                                                            | [multilineDescription](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#multilineDescription(boolean))`(multilineDescription: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Indicates whether the title and description are long, and should be displayed appropriately.                                                                                                                                                                                                                                                               |
| `B!`                                                                            | [subActions](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#subActions(java.util.List<androidx.leanback.widget.GuidedAction>))`(subActions: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[GuidedAction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)`!>?)` Sets sub actions list.                                                                                             |
| `B!`                                                                            | [title](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#title(java.lang.CharSequence))`(title: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?)` Sets the title for this action.                                                                                                                                                                                                                                                                                                                                              |
| `B!`                                                                            | [title](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#title(int))`(titleResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the title for this action.                                                                                                                                                                                                                                                                              |

|                            ### Protected functions                            |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [applyValues](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#applyValues(androidx.leanback.widget.GuidedAction))`(action: `[GuidedAction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)`)` Subclass of BuilderBase should call this function to apply values. |

## Public constructors

### BuilderBase

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
BuilderBase(context: Context)
```

Creates a BuilderBase for GuidedAction or its subclass.  

|                                         Parameters                                         |
|--------------------------------------------------------------------------------------------|------------------------------------------------|
| `context: `[Context](https://developer.android.com/reference/android/content/Context.html) | Context object used to build the GuidedAction. |

## Public functions

### autoSaveRestoreEnabled

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun autoSaveRestoreEnabled(autoSaveRestoreEnabled: Boolean): B!
```

Explicitly sets auto restore feature on the GuidedAction. It's by default true.  

|                                                  Parameters                                                   |
|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| `autoSaveRestoreEnabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if turn on auto save/restore of GuidedAction content, false otherwise. |

| Returns |
|---------|------------------------------|
| `B!`    | The same BuilderBase object. |

|                                                                  See also                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---|
| [isAutoSaveRestoreEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#isAutoSaveRestoreEnabled()) |   |

### autofillHints

```
fun autofillHints(hints: Array<String!>?): B!
```

Sets autofill hints. See[setAutofillHints](https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...))  

|                                                                                    Parameters                                                                                     |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| `hints: `[Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!>?` | List of hints for autofill. |

| Returns |
|---------|------------------------------|
| `B!`    | The same BuilderBase object. |

### checkSetId

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun checkSetId(checkSetId: Int): B!
```

Indicates whether this action is part of a single-select group similar to radio buttons or this action is a checkbox. When one item in a check set is checked, all others with the same check set ID will be checked automatically.  

|                                        Parameters                                         |
|-------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `checkSetId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The check set ID, or[NO_CHECK_SET](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#NO_CHECK_SET())to indicate not radio or checkbox, or[CHECKBOX_CHECK_SET_ID](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#CHECKBOX_CHECK_SET_ID())to indicate a checkbox. |

### checked

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun checked(checked: Boolean): B!
```

Indicates whether this action is initially checked.  

|                                           Parameters                                           |
|------------------------------------------------------------------------------------------------|---------------------------------|
| `checked: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this action is checked. |

### clickAction

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun clickAction(id: Long): B!
```

Construct a clickable action with associated id and auto assign pre-defined title for the action. If the id is not supported, the method simply does nothing.  

|                                     Parameters                                      |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `id: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | One of[ACTION_ID_OK](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_OK())[ACTION_ID_CANCEL](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_CANCEL())[ACTION_ID_FINISH](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_FINISH())[ACTION_ID_CONTINUE](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_CONTINUE())[ACTION_ID_YES](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_YES())[ACTION_ID_NO](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_NO()). |

| Returns |
|---------|------------------------------|
| `B!`    | The same BuilderBase object. |

### description

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun description(description: CharSequence?): B!
```

Sets the description for this action. The description is typically a longer string providing extra information on what the action will do.  

|                                                    Parameters                                                    |
|------------------------------------------------------------------------------------------------------------------|----------------------------------|
| `description: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?` | The description for this action. |

### description

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun description(descriptionResourceId: @StringRes Int): B!
```

Sets the description for this action. The description is typically a longer string providing extra information on what the action will do.  

|                                                                                            Parameters                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| `descriptionResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | String resource id of the description for this action. |

### descriptionEditInputType

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun descriptionEditInputType(inputType: Int): B!
```

Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action description in editing.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|--------------------------------------------------|
| `inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | InputType for the action description in editing. |

### descriptionEditable

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun descriptionEditable(editable: Boolean): B!
```

Indicates whether this action's description is editable  

|                                           Parameters                                            |
|-------------------------------------------------------------------------------------------------|----------------------------------------------|
| `editable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this action description is editable. |

### descriptionInputType

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun descriptionInputType(inputType: Int): B!
```

Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action description not in editing.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|------------------------------------------------------|
| `inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | InputType for the action description not in editing. |

### editDescription

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun editDescription(description: CharSequence?): B!
```

Sets the optional description text to edit. When TextView is activated, the edit description replaces the string of description.  

|                                                    Parameters                                                    |
|------------------------------------------------------------------------------------------------------------------|------------------------------------------|
| `description: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?` | The description to edit for this action. |

### editDescription

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun editDescription(descriptionResourceId: @StringRes Int): B!
```

Sets the optional description text to edit. When TextView is activated, the edit description replaces the string of description.  

|                                                                                            Parameters                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|
| `descriptionResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | String resource id of the description to edit for this action. |

### editInputType

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun editInputType(inputType: Int): B!
```

Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action title in editing.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|--------------------------------------------|
| `inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | InputType for the action title in editing. |

### editTitle

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun editTitle(editTitle: CharSequence?): B!
```

Sets the optional title text to edit. When TextView is activated, the edit title replaces the string of title.  

|                                                   Parameters                                                   |
|----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|
| `editTitle: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?` | The optional title text to edit when TextView is activated. |

### editTitle

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun editTitle(editTitleResourceId: @StringRes Int): B!
```

Sets the optional title text to edit. When TextView is activated, the edit title replaces the string of title.  

|                                                                                           Parameters                                                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
| `editTitleResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | String resource id of the optional title text to edit when TextView is activated. |

### editable

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun editable(editable: Boolean): B!
```

Indicates whether this action title is editable. Note: Editable actions cannot also be checked, or belong to a check set.  

|                                           Parameters                                            |
|-------------------------------------------------------------------------------------------------|----------------------------------|
| `editable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this action is editable. |

### enabled

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun enabled(enabled: Boolean): B!
```

Indicates whether this action is enabled. If not enabled, an action cannot be clicked.  

|                                           Parameters                                           |
|------------------------------------------------------------------------------------------------|--------------------------------|
| `enabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether the action is enabled. |

### focusable

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun focusable(focusable: Boolean): B!
```

Indicates whether this action can take focus.  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|---|
| `focusable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) |   |

| Returns |
|---------|------------------------------|
| `B!`    | The same BuilderBase object. |

### getContext

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun getContext(): Context
```

Returns Context of this Builder.  

|                                     Returns                                     |
|---------------------------------------------------------------------------------|--------------------------|
| [Context](https://developer.android.com/reference/android/content/Context.html) | Context of this Builder. |

### hasEditableActivatorView

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun hasEditableActivatorView(editable: Boolean): B!
```

Indicates whether this action has a view can be activated to edit, e.g. a DatePicker.  

|                                           Parameters                                            |
|-------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| `editable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this action has view can be activated to edit. |

### hasNext

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun hasNext(hasNext: Boolean): B!
```

Indicates whether this action has a next state and should display a chevron.  

|                                           Parameters                                           |
|------------------------------------------------------------------------------------------------|---------------------------------------|
| `hasNext: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this action has a next state. |

### icon

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun icon(icon: Drawable?): B!
```

Sets the action's icon drawable.  

|                                               Parameters                                               |
|--------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| `icon: `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)`?` | The drawable for the icon associated with this action. |

### icon

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun icon(iconResourceId: @DrawableRes Int): B!
```

Sets the action's icon drawable by retrieving it by resource ID from Builder's context. This is a convenience function that simply looks up the drawable and calls[icon](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#icon(android.graphics.drawable.Drawable)).  

|                                                                                           Parameters                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
| `iconResourceId: @`[DrawableRes](https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The resource ID for the icon associated with this action. |

### iconResourceId

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun [iconResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#iconResourceId(int,android.content.Context))(iconResourceId: @DrawableRes Int, context: Context!): B!
```
| **This function is deprecated.**   
|
| Use[icon](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#icon(int)).

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](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction.BuilderBase#icon(android.graphics.drawable.Drawable)).  

|                                                                                           Parameters                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
| `iconResourceId: @`[DrawableRes](https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The resource ID for the icon associated with this action. |
| `context: `[Context](https://developer.android.com/reference/android/content/Context.html)`!`                                                                                                  | The context whose resource ID should be retrieved.        |

### id

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun id(id: Long): B!
```

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.  

|                                     Parameters                                      |
|-------------------------------------------------------------------------------------|---------------------------------------|
| `id: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The ID to associate with this action. |

### infoOnly

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun infoOnly(infoOnly: Boolean): B!
```

Indicates whether this action is for information purposes only and cannot be clicked.  

|                                           Parameters                                            |
|-------------------------------------------------------------------------------------------------|---------------------------------------|
| `infoOnly: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this action has a next state. |

### inputType

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun inputType(inputType: Int): B!
```

Sets[InputType](https://developer.android.com/reference/android/text/InputType.html)of this action title not in editing.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|------------------------------------------------|
| `inputType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | InputType for the action title not in editing. |

### intent

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun intent(intent: Intent?): B!
```

Sets the intent associated with this action. Clients would typically fire this intent directly when the action is clicked.  

|                                         Parameters                                         |
|--------------------------------------------------------------------------------------------|-----------------------------------------|
| `intent: `[Intent](https://developer.android.com/reference/android/content/Intent.html)`?` | The intent associated with this action. |

### multilineDescription

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun multilineDescription(multilineDescription: Boolean): B!
```

Indicates whether the title and description are long, and should be displayed appropriately.  

|                                                 Parameters                                                  |
|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------|
| `multilineDescription: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this action has a multiline description. |

### subActions

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun subActions(subActions: (Mutable)List<GuidedAction!>?): B!
```

Sets sub actions list.  

|                                                                                                                                                         Parameters                                                                                                                                                          |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| `subActions: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[GuidedAction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)`!>?` |   |

| Returns |
|---------|------------------------------|
| `B!`    | The same BuilderBase object. |

### title

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun title(title: CharSequence?): B!
```

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".  

|                                                 Parameters                                                 |
|------------------------------------------------------------------------------------------------------------|----------------------------|
| `title: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?` | The title for this action. |

### title

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun title(titleResourceId: @StringRes Int): B!
```

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".  

|                                                                                         Parameters                                                                                          |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| `titleResourceId: @`[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The resource id of title for this action. |

## Protected functions

### applyValues

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
protected fun applyValues(action: GuidedAction): Unit
```

Subclass of BuilderBase should call this function to apply values.  

|                                                   Parameters                                                   |
|----------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| `action: `[GuidedAction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction) | GuidedAction to apply BuilderBase values. |