Files
AndroidJetpack/Jetpack-Compose-Playground/docs/activity/backhandler.md
T
2026-07-15 16:57:36 +08:00

607 B

BackHandler

You can use BackHandler to detect the presses on the device back button inside of Compose

Example

--8<-- "activity/backhandler/BackHandlerExample.kt:func"

See also:

  • Official Docs
  • [Full Example Code]({{ site.samplefolder }}/activity/backhandler/BackHandlerExample.kt)