WearableNavigationDrawerView.WearableNavigationDrawerAdapter

Added in 1.1.0

abstract class WearableNavigationDrawerView.WearableNavigationDrawerAdapter


Adapter for specifying the contents of WearableNavigationDrawer.

Summary

Public constructors

Public functions

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.

Unit

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

Public constructors

WearableNavigationDrawerAdapter

Added in 1.1.0
WearableNavigationDrawerAdapter()

Public functions

getCount

Added in 1.1.0
abstract fun getCount(): Int

Returns the number of items in this adapter.

getItemDrawable

Added in 1.1.0
abstract fun getItemDrawable(pos: Int): Drawable!

Get the drawable associated with the item at pos.

getItemText

Added in 1.1.0
abstract fun getItemText(pos: Int): CharSequence!

Get the text associated with the item at pos.

notifyDataSetChanged

Added in 1.1.0
fun notifyDataSetChanged(): Unit

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