public abstract class

WearableNavigationDrawerView.WearableNavigationDrawerAdapter

extends java.lang.Object

 java.lang.Object

↳androidx.wear.widget.drawer.WearableNavigationDrawerView.WearableNavigationDrawerAdapter

Overview

Adapter for specifying the contents of WearableNavigationDrawer.

Summary

Constructors
publicWearableNavigationDrawerAdapter()

Methods
public abstract intgetCount()

Returns the number of items in this adapter.

public abstract DrawablegetItemDrawable(int pos)

Get the drawable associated with the item at pos.

public abstract java.lang.CharSequencegetItemText(int pos)

Get the text associated with the item at pos.

public voidnotifyDataSetChanged()

This method should be called by the application if the data backing this adapter has changed and associated views should update.

public voidsetPresenter(WearableNavigationDrawerPresenter presenter)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public WearableNavigationDrawerAdapter()

Methods

public abstract java.lang.CharSequence getItemText(int pos)

Get the text associated with the item at pos.

public abstract Drawable getItemDrawable(int pos)

Get the drawable associated with the item at pos.

public abstract int getCount()

Returns the number of items in this adapter.

public void notifyDataSetChanged()

This method should be called by the application if the data backing this adapter has changed and associated views should update.

public void setPresenter(WearableNavigationDrawerPresenter presenter)