# WearableNavigationDrawer.WearableNavigationDrawerAdapter

Summary:[Ctors](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter#pubctors)\|[Methods](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter#inhmethods)  

# WearableNavigationDrawer.WearableNavigationDrawerAdapter

`
public
static

abstract
class
WearableNavigationDrawer.WearableNavigationDrawerAdapter
`  
`

extends `[Object](http://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|-----------------------------------------------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)                 ||
| ↳ | android.support.wearable.view.drawer.WearableNavigationDrawer.WearableNavigationDrawerAdapter |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
use the`androidx.wear.widget.drawer.WearableNavigationDrawerView`provided by the[Jetpack Wear](https://developer.android.com/jetpack/androidx/releases/wear)library instead.

Adapter for specifying the contents of WearableNavigationDrawer.

## Summary

|                                                                                                  ### Public constructors                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[WearableNavigationDrawerAdapter](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter.html#WearableNavigationDrawerAdapter())`() ` |

|                                                                                                                                                                                                             ### Public methods                                                                                                                                                                                                             ||
|--------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract int`                                                                                        | ` `[getCount](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter.html#getCount())`() ` Returns the number of items in this adapter.                                                                                                             |
| ` abstract `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html) | ` `[getItemDrawable](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter.html#getItemDrawable(int))`(int pos) ` Get the drawable associated with the item at`pos`.                                                                               |
| ` abstract `[String](http://developer.android.com/reference/java/lang/String.html)                     | ` `[getItemText](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter.html#getItemText(int))`(int pos) ` Get the text associated with the item at`pos`.                                                                                           |
| ` void`                                                                                                | ` `[notifyDataSetChanged](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter.html#notifyDataSetChanged())`() ` This method should be called by the application if the data backing this adapter has changed and associated views should update. |
| ` abstract void`                                                                                       | ` `[onItemSelected](https://developer.android.com/reference/android/support/wearable/view/drawer/WearableNavigationDrawer.WearableNavigationDrawerAdapter.html#onItemSelected(int))`(int pos) ` Callback when the adapter switches to the item at`pos`.                                                                            |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||

## Public constructors

### WearableNavigationDrawerAdapter

```
public WearableNavigationDrawerAdapter ()
```

<br />

<br />

## Public methods

### getCount

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

Returns the number of items in this adapter.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getItemDrawable

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

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

<br />

|     Parameters      ||
|-------|--------------|
| `pos` | `int` <br /> |

|                                              Returns                                               ||
|--------------------------------------------------------------------------------------------|--------|
| [Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html) | <br /> |

### getItemText

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

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

<br />

|     Parameters      ||
|-------|--------------|
| `pos` | `int` <br /> |

|                                    Returns                                     ||
|------------------------------------------------------------------------|--------|
| [String](http://developer.android.com/reference/java/lang/String.html) | <br /> |

### notifyDataSetChanged

```
public void notifyDataSetChanged ()
```

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

<br />

### onItemSelected

```
public abstract void onItemSelected (int pos)
```

Callback when the adapter switches to the item at`pos`.

<br />

|     Parameters      ||
|-------|--------------|
| `pos` | `int` <br /> |