Delegate
interface Delegate
androidx.appcompat.app.ActionBarDrawerToggle.Delegate |
Summary
Public methods | |
---|---|
abstract Context! |
Returns the context of ActionBar |
abstract Drawable! |
Returns the drawable to be set as up button when DrawerToggle is disabled |
abstract Boolean |
Returns whether navigation icon is visible or not. |
abstract Unit |
setActionBarDescription(@StringRes contentDescRes: Int) Set the Action Bar's up indicator content description. |
abstract Unit |
setActionBarUpIndicator(upDrawable: Drawable!, @StringRes contentDescRes: Int) Set the Action Bar's up indicator drawable and content description. |
Public methods
getActionBarThemedContext
abstract fun getActionBarThemedContext(): Context!
Returns the context of ActionBar
getThemeUpIndicator
abstract fun getThemeUpIndicator(): Drawable!
Returns the drawable to be set as up button when DrawerToggle is disabled
isNavigationVisible
abstract 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
abstract fun setActionBarDescription(@StringRes contentDescRes: Int): Unit
Set the Action Bar's up indicator content description.
Parameters | |
---|---|
contentDescRes |
Int: - Content description to set |
setActionBarUpIndicator
abstract fun setActionBarUpIndicator(
upDrawable: Drawable!,
@StringRes contentDescRes: Int
): Unit
Set the Action Bar's up indicator drawable and content description.
Parameters | |
---|---|
upDrawable |
Drawable!: - Drawable to set as up indicator |
contentDescRes |
Int: - Content description to set |