# ActionBarDrawerToggle.Delegate

Artifact: [androidx.appcompat:appcompat](https://developer.android.com/jetpack/androidx/releases/appcompat) [View Source](https://cs.android.com/search?q=file:androidx/appcompat/app/ActionBarDrawerToggle.java+class:androidx.appcompat.app.ActionBarDrawerToggle.Delegate) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

*** ** * ** ***


```
public interface ActionBarDrawerToggle.Delegate
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/android/content/Context.html` | `https://developer.android.com/reference/androidx/appcompat/app/ActionBarDrawerToggle.Delegate#getActionBarThemedContext()()` Returns the context of ActionBar |
| `abstract https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/androidx/appcompat/app/ActionBarDrawerToggle.Delegate#getThemeUpIndicator()()` Returns the drawable to be set as up button when DrawerToggle is disabled |
| `abstract boolean` | `https://developer.android.com/reference/androidx/appcompat/app/ActionBarDrawerToggle.Delegate#isNavigationVisible()()` Returns whether navigation icon is visible or not. |
| `abstract void` | `https://developer.android.com/reference/androidx/appcompat/app/ActionBarDrawerToggle.Delegate#setActionBarDescription(int)(@https://developer.android.com/reference/androidx/annotation/StringRes int contentDescRes)` Set the Action Bar's up indicator content description. |
| `abstract void` | `https://developer.android.com/reference/androidx/appcompat/app/ActionBarDrawerToggle.Delegate#setActionBarUpIndicator(android.graphics.drawable.Drawable,int)( https://developer.android.com/reference/android/graphics/drawable/Drawable.html upDrawable, @https://developer.android.com/reference/androidx/annotation/StringRes int contentDescRes )` Set the Action Bar's up indicator drawable and content description. |

## Public methods

### getActionBarThemedContext

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

```
abstract Context getActionBarThemedContext()
```

Returns the context of ActionBar

### getThemeUpIndicator

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

```
abstract Drawable getThemeUpIndicator()
```

Returns the drawable to be set as up button when DrawerToggle is disabled

### isNavigationVisible

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

```
abstract boolean isNavigationVisible()
```

Returns whether navigation icon is visible or not. Used to print warning messages in case developer forgets to set displayHomeAsUp to true

### setActionBarDescription

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

```
abstract void setActionBarDescription(@StringRes int contentDescRes)
```

Set the Action Bar's up indicator content description.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/StringRes int contentDescRes` | - Content description to set |

### setActionBarUpIndicator

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

```
abstract void setActionBarUpIndicator(
    Drawable upDrawable,
    @StringRes int contentDescRes
)
```

Set the Action Bar's up indicator drawable and content description.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html upDrawable` | - Drawable to set as up indicator |
| `@https://developer.android.com/reference/androidx/annotation/StringRes int contentDescRes` | - Content description to set |