onBackPressed

open fun onBackPressed(): Boolean

Called when hardware back button has been pressed.

Return

True if the listener has consumed the event, false otherwise.