OnBackPressedConsumer

interface OnBackPressedConsumer

An interface for components capable of consuming hardware back button presses.

Functions

Link copied to clipboard
abstract fun onBackPressed(): Boolean

Called as a result from pressing a hardware back button. This should only be called as a result of user interaction with a back button, and not to trigger behaviour that is assumed to result from a back press. For example, in order to go back in a task panel back stack, do not call this but close the panel directly using TaskPanel.dismiss instead.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard