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

*** ** * ** ***


```
interface ActionBarDrawerToggle.Delegate
```

<br />

*** ** * ** ***

## Summary

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

## Public functions

### getActionBarThemedContext

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

```
fun getActionBarThemedContext(): Context!
```

Returns the context of ActionBar

### getThemeUpIndicator

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

```
fun getThemeUpIndicator(): Drawable!
```

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)

```
fun isNavigationVisible(): Boolean
```

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)

```
fun setActionBarDescription(contentDescRes: @StringRes Int): Unit
```

Set the Action Bar's up indicator content description.

| Parameters |
|---|---|
| `contentDescRes: @https://developer.android.com/reference/kotlin/androidx/annotation/StringRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | - Content description to set |

### setActionBarUpIndicator

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

```
fun setActionBarUpIndicator(
    upDrawable: Drawable!,
    contentDescRes: @StringRes Int
): Unit
```

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

| Parameters |
|---|---|
| `upDrawable: https://developer.android.com/reference/android/graphics/drawable/Drawable.html!` | - Drawable to set as up indicator |
| `contentDescRes: @https://developer.android.com/reference/kotlin/androidx/annotation/StringRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | - Content description to set |