public abstract class

PlaybackRowPresenter

extends RowPresenter

 java.lang.Object

androidx.leanback.widget.Presenter

androidx.leanback.widget.RowPresenter

↳androidx.leanback.widget.PlaybackRowPresenter

Subclasses:

PlaybackTransportRowPresenter, PlaybackControlsRowPresenter

Gradle dependencies

compile group: 'androidx.leanback', name: 'leanback', version: '1.2.0-alpha04'

  • groupId: androidx.leanback
  • artifactId: leanback
  • version: 1.2.0-alpha04

Artifact androidx.leanback:leanback:1.2.0-alpha04 it located at Google repository (https://maven.google.com/)

Androidx artifact mapping:

androidx.leanback:leanback com.android.support:leanback-v17

Androidx class mapping:

androidx.leanback.widget.PlaybackRowPresenter android.support.v17.leanback.widget.PlaybackRowPresenter

Overview

Subclass of RowPresenter that can define the desired behavior when the view reappears. This is presently used by PlaybackControlsRowPresenter to update the UI after we show/hide the controls view.

Summary

Fields
from RowPresenterSYNC_ACTIVATED_CUSTOM, SYNC_ACTIVATED_TO_EXPANDED, SYNC_ACTIVATED_TO_EXPANDED_AND_SELECTED, SYNC_ACTIVATED_TO_SELECTED
Constructors
publicPlaybackRowPresenter()

Methods
public voidonReappear(RowPresenter.ViewHolder rowViewHolder)

Provides hook to update the UI when the view reappears.

from RowPresentercreateRowViewHolder, dispatchItemSelectedListener, freeze, getHeaderPresenter, getRowViewHolder, getSelectEffectEnabled, getSelectLevel, getSyncActivatePolicy, initializeRowViewHolder, isClippingChildren, isUsingDefaultSelectEffect, onBindRowViewHolder, onBindViewHolder, onCreateViewHolder, onRowViewAttachedToWindow, onRowViewDetachedFromWindow, onRowViewExpanded, onRowViewSelected, onSelectLevelChanged, onUnbindRowViewHolder, onUnbindViewHolder, onViewAttachedToWindow, onViewDetachedFromWindow, setEntranceTransitionState, setHeaderPresenter, setRowViewExpanded, setRowViewSelected, setSelectEffectEnabled, setSelectLevel, setSyncActivatePolicy
from PresentercancelAnimationsRecursive, getFacet, onBindViewHolder, setFacet, setOnClickListener
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public PlaybackRowPresenter()

Methods

public void onReappear(RowPresenter.ViewHolder rowViewHolder)

Provides hook to update the UI when the view reappears.

Source

package androidx.leanback.widget;

import android.view.View;

import androidx.annotation.NonNull;

/**
 * Subclass of {@link RowPresenter} that can define the desired behavior when the view
 * reappears. This is presently used by {@link PlaybackControlsRowPresenter} to update the UI
 * after we show/hide the controls view.
 */
public abstract class PlaybackRowPresenter extends RowPresenter {

    /**
     * This container is used for trapping click events and passing them to the
     * playback controls.
     */
    public static class ViewHolder extends RowPresenter.ViewHolder {
        public ViewHolder(View view) {
            super(view);
        }
    }

    /**
     * Provides hook to update the UI when the view reappears.
     */
    public void onReappear(@NonNull RowPresenter.ViewHolder rowViewHolder) {
    }
}