android-components / mozilla.components.support.base.feature / BackHandler

BackHandler

interface ~~BackHandler~~ (source) Deprecated: Use UserInteractionHandler instead.

Generic interface for fragments, features and other components that want to handle ‘back’ button presses.

Functions

Name Summary
onBackPressed abstract fun ~~onBackPressed~~(): Boolean
Called when this UserInteractionHandler gets the option to handle the user pressing the back key.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.