[android-components](../../index.md) / [mozilla.components.support.base.feature](../index.md) / [UserInteractionHandler](index.md) / [onHomePressed](./on-home-pressed.md)

# onHomePressed

`open fun onHomePressed(): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/base/src/main/java/mozilla/components/support/base/feature/UserInteractionHandler.kt#L27)

In most cases, when the home button is pressed, we invoke this callback to inform the app that the user
is going to leave the app.

See also [Activity.onUserLeaveHint](#) for more details.

