1 package androidx.leanback.widget; 2 3 import android.view.View; 4 5 import org.jspecify.annotations.NonNull; 6 7 /** 8 * Subclass of {@link RowPresenter} that can define the desired behavior when the view 9 * reappears. This is presently used by {@link PlaybackControlsRowPresenter} to update the UI 10 * after we show/hide the controls view. 11 */ 12 public abstract class PlaybackRowPresenter extends RowPresenter { 13 14 /** 15 * This container is used for trapping click events and passing them to the 16 * playback controls. 17 */ 18 public static class ViewHolder extends RowPresenter.ViewHolder { ViewHolder(View view)19 public ViewHolder(View view) { 20 super(view); 21 } 22 } 23 24 /** 25 * Provides hook to update the UI when the view reappears. 26 */ onReappear(RowPresenter.@onNull ViewHolder rowViewHolder)27 public void onReappear(RowPresenter.@NonNull ViewHolder rowViewHolder) { 28 } 29 } 30