WearableNavigationDrawerAdapter
abstract class WearableNavigationDrawerAdapter
kotlin.Any | |
↳ | androidx.wear.widget.drawer.WearableNavigationDrawerView.WearableNavigationDrawerAdapter |
Adapter for specifying the contents of WearableNavigationDrawer.
Summary
Public constructors | |
---|---|
<init>() Adapter for specifying the contents of WearableNavigationDrawer. |
Public methods | |
---|---|
abstract Int |
getCount() Returns the number of items in this adapter. |
abstract Drawable! |
Get the drawable associated with the item at |
abstract CharSequence! |
getItemText(: Int) Get the text associated with the item at |
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
getItemDrawable
abstract fun getItemDrawable(: Int): Drawable!
Get the drawable associated with the item at pos
.
getItemText
abstract fun getItemText(: 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.