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

onBackPressed

fun onBackPressed(): Boolean (source)

Overrides BackHandler.onBackPressed

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

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