# WearableNavigationDrawerView.WearableNavigationDrawerAdapter

# WearableNavigationDrawerView.WearableNavigationDrawerAdapter

Artifact:[androidx.wear:wear](https://developer.android.com/jetpack/androidx/releases/wear)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/widget/drawer/WearableNavigationDrawerView.java+class:androidx.wear.widget.drawer.WearableNavigationDrawerView.WearableNavigationDrawerAdapter)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter "View this page in Java")

<br />

```
abstract class WearableNavigationDrawerView.WearableNavigationDrawerAdapter
```

<br />

*** ** * ** ***

Adapter for specifying the contents of WearableNavigationDrawer.

## Summary

|                                                                                             ### Public constructors                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [WearableNavigationDrawerAdapter](https://developer.android.com/reference/kotlin/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#WearableNavigationDrawerAdapter())`()` |

|                                             ### Public functions                                             |
|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                       | [getCount](https://developer.android.com/reference/kotlin/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#getCount())`()` Returns the number of items in this adapter.                                                                                                             |
| `abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)`!`    | [getItemDrawable](https://developer.android.com/reference/kotlin/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#getItemDrawable(int))`(pos: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Get the drawable associated with the item at`pos`.    |
| `abstract `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | [getItemText](https://developer.android.com/reference/kotlin/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#getItemText(int))`(pos: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Get the text associated with the item at`pos`.                |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                | [notifyDataSetChanged](https://developer.android.com/reference/kotlin/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#notifyDataSetChanged())`()` 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](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)  

```
abstract fun getCount(): Int
```

Returns the number of items in this adapter.  

### getItemDrawable

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)  

```
abstract fun getItemDrawable(pos: Int): Drawable!
```

Get the drawable associated with the item at`pos`.  

### getItemText

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)  

```
abstract fun getItemText(pos: Int): CharSequence!
```

Get the text associated with the item at`pos`.  

### notifyDataSetChanged

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#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.