android-components / mozilla.components.feature.qr / QrFeature / onBackPressed

onBackPressed

fun onBackPressed(): Boolean (source)

Overrides UserInteractionHandler.onBackPressed

Called when this UserInteractionHandler gets the option to handle the user pressing the back key.

Returns true if this UserInteractionHandler consumed the event and no other components need to be notified.