public interface

MultiPagePresenter.Ui

 androidx.wear.internal.widget.drawer.MultiPagePresenter.Ui

Subclasses:

MultiPageUi

Overview

Controls the user interface of a multi-page WearableNavigationDrawerView.

Summary

Methods
public voidinitialize(WearableNavigationDrawerView drawer, WearableNavigationDrawerPresenter presenter)

Initializes the Ui.

public voidnotifyNavigationPagerAdapterDataChanged()

Should notify the NavigationPagerAdapter that the underlying data has changed.

public voidnotifyPageIndicatorDataChanged()

Should notify the Page Indicator that the underlying data has changed.

public voidsetNavigationPagerAdapter(WearableNavigationDrawerView.WearableNavigationDrawerAdapter adapter)

Associates the given adapter with this MultiPagePresenter.Ui.

public voidsetNavigationPagerSelectedItem(int index, boolean smoothScrollTo)

Sets which item is selected and optionally smooth scrolls to it.

Methods

public void initialize(WearableNavigationDrawerView drawer, WearableNavigationDrawerPresenter presenter)

Initializes the Ui.

public void notifyNavigationPagerAdapterDataChanged()

Should notify the NavigationPagerAdapter that the underlying data has changed.

public void notifyPageIndicatorDataChanged()

Should notify the Page Indicator that the underlying data has changed.

public void setNavigationPagerAdapter(WearableNavigationDrawerView.WearableNavigationDrawerAdapter adapter)

Associates the given adapter with this MultiPagePresenter.Ui.

public void setNavigationPagerSelectedItem(int index, boolean smoothScrollTo)

Sets which item is selected and optionally smooth scrolls to it.