IviOnBackPressedDispatcher

An IviOnBackPressedCallback that can dispatch on back presses to other IviOnBackPressedCallbacks. It is disabled by default and enabled when any of added callbacks are enabled. The last added callback that is currently enabled is called to handle the back press.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isEnabled: LiveData<Boolean>

State of this callback.

Functions

Link copied to clipboard

Add a new callback.

Add a callback that does not change.

Link copied to clipboard
open override fun handleOnBackPressed()

Callback for handling back presses.