# 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)

*** ** * ** ***


```
public abstract class WearableNavigationDrawerView.WearableNavigationDrawerAdapter
```

<br />

*** ** * ** ***

Adapter for specifying the contents of WearableNavigationDrawer.

## Summary

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

| ### Public methods |
|---|---|
| `abstract int` | `https://developer.android.com/reference/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#getCount()()` Returns the number of items in this adapter. |
| `abstract https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#getItemDrawable(int)(int pos)` Get the drawable associated with the item at `pos`. |
| `abstract https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/wear/widget/drawer/WearableNavigationDrawerView.WearableNavigationDrawerAdapter#getItemText(int)(int pos)` Get the text associated with the item at `pos`. |
| `void` | `https://developer.android.com/reference/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

```
public WearableNavigationDrawerAdapter()
```

## Public methods

### getCount

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

```
public abstract int getCount()
```

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)

```
public abstract Drawable getItemDrawable(int pos)
```

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)

```
public abstract CharSequence getItemText(int pos)
```

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)

```
public void notifyDataSetChanged()
```

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