public interface

SinglePagePresenter.Ui

 androidx.wear.internal.widget.drawer.SinglePagePresenter.Ui

Subclasses:

SinglePageUi

Overview

Controls the user interface of a single-page WearableNavigationDrawerView.

Summary

Methods
public voidcloseDrawerDelayed(long delayMs)

Closes the drawer after the given delay.

public voiddeselectItem(int index)

Removes the indication that the item at index has been selected.

public voidinitialize(int count)

Initializes the SinglePagePresenter.Ui with count items.

public voidpeekDrawer()

Peeks the WearableNavigationDrawerView.

public voidselectItem(int index)

Indicates that the item at index has been selected.

public voidsetIcon(int index, Drawable drawable, java.lang.CharSequence contentDescription)

Sets the item's Drawable icon and its contentDescription.

public voidsetPresenter(WearableNavigationDrawerPresenter presenter)

Associates a WearableNavigationDrawerPresenter with this SinglePagePresenter.Ui.

public voidsetText(java.lang.CharSequence itemText, boolean showToastIfNoTextView)

Displays itemText in a android.widget.TextView used to indicate which item is selected.

Methods

public void setPresenter(WearableNavigationDrawerPresenter presenter)

Associates a WearableNavigationDrawerPresenter with this SinglePagePresenter.Ui.

public void initialize(int count)

Initializes the SinglePagePresenter.Ui with count items.

public void setIcon(int index, Drawable drawable, java.lang.CharSequence contentDescription)

Sets the item's Drawable icon and its contentDescription.

public void setText(java.lang.CharSequence itemText, boolean showToastIfNoTextView)

Displays itemText in a android.widget.TextView used to indicate which item is selected. When the SinglePagePresenter.Ui doesn't have space, it should show a if showToastIfNoTextView is true.

public void selectItem(int index)

Indicates that the item at index has been selected.

public void deselectItem(int index)

Removes the indication that the item at index has been selected.

public void closeDrawerDelayed(long delayMs)

Closes the drawer after the given delay.

public void peekDrawer()

Peeks the WearableNavigationDrawerView.