# PlaybackControlsRow.FastForwardAction

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

*** ** * ** ***


```
public class PlaybackControlsRow.FastForwardAction extends PlaybackControlsRow.MultiAction
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.leanback.widget.Action](https://developer.android.com/reference/androidx/leanback/widget/Action) |||
|   | ↳ | [androidx.leanback.widget.PlaybackControlsRow.MultiAction](https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction) ||
|   |   | ↳ | [androidx.leanback.widget.PlaybackControlsRow.FastForwardAction](https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.FastForwardAction) |

*** ** * ** ***

An action displaying an icon for fast forward.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.FastForwardAction#FastForwardAction(android.content.Context)(https://developer.android.com/reference/android/content/Context.html context)` Constructor |
| `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.FastForwardAction#FastForwardAction(android.content.Context,int)(https://developer.android.com/reference/android/content/Context.html context, int numSpeeds)` Constructor |

| ### Inherited Constants |
|---|
| From [androidx.leanback.widget.Action](https://developer.android.com/reference/androidx/leanback/widget/Action) |---|---| | `static final long` | `https://developer.android.com/reference/androidx/leanback/widget/Action#NO_ID() = -1` Indicates that an id has not been set. | |

| ### Inherited methods |
|---|
| From [androidx.leanback.widget.Action](https://developer.android.com/reference/androidx/leanback/widget/Action) |---|---| | `final void` | `https://developer.android.com/reference/androidx/leanback/widget/Action#addKeyCode(int)(int keyCode)` Adds a keycode used to invoke this Action. | | `final @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/androidx/leanback/widget/Action#getIcon()()` Returns the icon drawable for this Action. | | `final long` | `https://developer.android.com/reference/androidx/leanback/widget/Action#getId()()` Returns the id for this Action. | | `final @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/leanback/widget/Action#getLabel1()()` Returns the first line label for this Action. | | `final @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/leanback/widget/Action#getLabel2()()` Returns the second line label for this Action. | | `final void` | `https://developer.android.com/reference/androidx/leanback/widget/Action#removeKeyCode(int)(int keyCode)` Removes a keycode used to invoke this Action. | | `final boolean` | `https://developer.android.com/reference/androidx/leanback/widget/Action#respondsToKeyCode(int)(int keyCode)` Returns true if the Action should respond to the given keycode. | | `final void` | `https://developer.android.com/reference/androidx/leanback/widget/Action#setIcon(android.graphics.drawable.Drawable)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/drawable/Drawable.html icon)` Sets the icon drawable for this Action. | | `final void` | `https://developer.android.com/reference/androidx/leanback/widget/Action#setId(long)(long id)` Sets the id for this Action. | | `final void` | `https://developer.android.com/reference/androidx/leanback/widget/Action#setLabel1(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html label)` Sets the first line label for this Action. | | `final void` | `https://developer.android.com/reference/androidx/leanback/widget/Action#setLabel2(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html label)` Sets the second line label for this Action. | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/leanback/widget/Action#toString()()` | |
| From [androidx.leanback.widget.PlaybackControlsRow.MultiAction](https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction) |---|---| | `int` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#getActionCount()()` Returns the number of actions. | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#getDrawable(int)(int index)` Returns the drawable at the given index. | | `int` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#getIndex()()` Returns the current index. | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#getLabel(int)(int index)` Returns the label at the given index. | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#getSecondaryLabel(int)(int index)` Returns the secondary label at the given index. | | `void` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#nextIndex()()` Increments the index, wrapping to zero once the end is reached. | | `void` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#setDrawables(android.graphics.drawable.Drawable[])(Drawable[] drawables)` Sets the array of drawables. | | `void` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#setIndex(int)(int index)` Sets the current index. | | `void` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#setLabels(java.lang.String[])(String[] labels)` Sets the array of strings used as labels. | | `void` | `https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow.MultiAction#setSecondaryLabels(java.lang.String[])(String[] labels)` Sets the array of strings used as secondary labels. | |

## Public constructors

### FastForwardAction

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

```
public FastForwardAction(Context context)
```

Constructor

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/content/Context.html context` | Context used for loading resources. |

### FastForwardAction

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

```
public FastForwardAction(Context context, int numSpeeds)
```

Constructor

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/content/Context.html context` | Context used for loading resources. |
| `int numSpeeds` | Number of supported fast forward speeds. |