android-back

command
v1.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL