android-components / mozilla.components.feature.customtabs / CustomTabsToolbarFeature / onBackPressed

onBackPressed

fun onBackPressed(): Boolean (source)

Overrides BackHandler.onBackPressed

When the back button is pressed if not initialized returns false, when initialized removes the current Custom Tabs session and returns true. Should be called when the back button is pressed.