# ActionBarDrawerToggle.Delegate

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1  

# ActionBarDrawerToggle.Delegate

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


interface
ActionBarDrawerToggle.Delegate
`  
`


`

|-------------------------------------------------------|
| android.support.v7.app.ActionBarDrawerToggle.Delegate |

<br />

*** ** * ** ***

## Summary

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

## Public methods

### getActionBarThemedContext

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Context getActionBarThemedContext ()
```

Returns the context of ActionBar

<br />

|                                         Returns                                         ||
|---------------------------------------------------------------------------------|--------|
| [Context](https://developer.android.com/reference/android/content/Context.html) | <br /> |

### getThemeUpIndicator

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Drawable getThemeUpIndicator ()
```

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

<br />

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

### isNavigationVisible

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isNavigationVisible ()
```

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

<br />

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

### setActionBarDescription

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setActionBarDescription (int contentDescRes)
```

Set the Action Bar's up indicator content description.

<br />

|                          Parameters                          ||
|------------------|--------------------------------------------|
| `contentDescRes` | `int`: - Content description to set <br /> |

### setActionBarUpIndicator

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setActionBarUpIndicator (Drawable upDrawable, 
                int contentDescRes)
```

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

<br />

|                               Parameters                               ||
|------------------|------------------------------------------------------|
| `upDrawable`     | `Drawable`: - Drawable to set as up indicator <br /> |
| `contentDescRes` | `int`: - Content description to set <br />           |

-

  ## Interfaces

  - [ActionBar.OnMenuVisibilityListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.OnMenuVisibilityListener)
  - [ActionBar.OnNavigationListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.OnNavigationListener)
  - [ActionBar.TabListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.TabListener)
  - [ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate)
  - [ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.DelegateProvider)
  - [AppCompatCallback](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback)
-

  ## Classes

  - [ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)
  - [ActionBar.LayoutParams](https://developer.android.com/reference/android/support/v7/app/ActionBar.LayoutParams)
  - [ActionBar.Tab](https://developer.android.com/reference/android/support/v7/app/ActionBar.Tab)
  - [ActionBarDrawerToggle](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle)
  - [AlertDialog](https://developer.android.com/reference/android/support/v7/app/AlertDialog)
  - [AlertDialog.Builder](https://developer.android.com/reference/android/support/v7/app/AlertDialog.Builder)
  - [AppCompatActivity](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity)
  - [AppCompatDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate)
  - [AppCompatDialog](https://developer.android.com/reference/android/support/v7/app/AppCompatDialog)
  - [AppCompatDialogFragment](https://developer.android.com/reference/android/support/v7/app/AppCompatDialogFragment)
  - [AppCompatViewInflater](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater)
  - [MediaRouteActionProvider](https://developer.android.com/reference/android/support/v7/app/MediaRouteActionProvider)
  - [MediaRouteButton](https://developer.android.com/reference/android/support/v7/app/MediaRouteButton)
  - [MediaRouteChooserDialog](https://developer.android.com/reference/android/support/v7/app/MediaRouteChooserDialog)
  - [MediaRouteChooserDialogFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteChooserDialogFragment)
  - [MediaRouteControllerDialog](https://developer.android.com/reference/android/support/v7/app/MediaRouteControllerDialog)
  - [MediaRouteControllerDialogFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteControllerDialogFragment)
  - [MediaRouteDialogFactory](https://developer.android.com/reference/android/support/v7/app/MediaRouteDialogFactory)
  - [MediaRouteDiscoveryFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteDiscoveryFragment)