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 Int

Returns the number of items in this adapter.

abstract Drawable!

Get the drawable associated with the item at pos.

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.

Public constructors

<init>

WearableNavigationDrawerAdapter()

Adapter for specifying the contents of WearableNavigationDrawer.

Public methods

getCount

abstract fun getCount(): Int

Returns the number of items in this adapter.

getItemDrawable

abstract fun getItemDrawable(pos: Int): Drawable!

Get the drawable associated with the item at pos.

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.