WearableNavigationDrawerAdapter

abstract class WearableNavigationDrawerAdapter
kotlin.Any
   ↳ androidx.wear.widget.drawer.WearableNavigationDrawerView.WearableNavigationDrawerAdapter

Adapter for specifying the contents of WearableNavigationDrawer.

Summary

Public constructors

Adapter for specifying the contents of WearableNavigationDrawer.

Public methods
abstract CharSequence!

Get the text associated with the item at pos.

open Unit

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

abstract Drawable!

Get the drawable associated with the item at pos.

abstract Int

Returns the number of items in this adapter.

Public constructors

<init>

WearableNavigationDrawerAdapter()

Adapter for specifying the contents of WearableNavigationDrawer.

Public methods

getItemText

abstract fun getItemText(pos: Int): CharSequence!

Get the text associated with the item at pos.

notifyDataSetChanged

open fun notifyDataSetChanged(): Unit

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

getItemDrawable

abstract fun getItemDrawable(pos: Int): Drawable!

Get the drawable associated with the item at pos.

getCount

abstract fun getCount(): Int

Returns the number of items in this adapter.