MaterialBackHandler

Interface for views that support back handling.

Inheritors

Functions

Link copied to clipboard
abstract fun cancelBackProgress()
Call this method from onBackCancelled or handleOnBackCancelled so that the back handler can cancel the back animation.
Link copied to clipboard
abstract fun handleBackInvoked()
Call this method from onBackInvoked or handleOnBackPressed so that the back handler can complete the back animation, or handle back without progress in certain cases.
Link copied to clipboard
abstract fun startBackProgress(@NonNull backEvent: BackEventCompat)
Call this method from onBackStarted or handleOnBackStarted so that the back handler can initialize and start animating.
Link copied to clipboard
abstract fun updateBackProgress(@NonNull backEvent: BackEventCompat)
Call this method from onBackProgressed or handleOnBackProgressed so that the back handler can continue animating with a new progress value.