Documentation
¶
Overview ¶
Command android-back is a development example (step 25.9): an app of three pages that logs what the framework hears of the activity's life and of the back button and the back gesture, so that the device tests can send the app Home, press Back and swipe back, and read what happened. It uses the public API only and runs on every platform.
The home page pushes the second page, and the second page pushes a third page that cannot be popped (a PopScope with canPop false, which logs the attempt). GLUTTER_DEMO is a list of words separated by commas:
second start on the second page take the observer of the example takes the back gesture, to hear its progress, commit and cancel locked start on the third page, whose pop is blocked (the history is /, /second, /second/locked)
Run it on a device or the emulator with:
go run ./cmd/glutter-android run ./examples/dev/android-back