Documentation
¶
Overview ¶
Command android-system is a development example (step 25.7): a Material page that logs what the framework knows of the system on every build (the insets, the brightness, the text scale, the clock, the animations, the accessibility settings), and does what the variable GLUTTER_DEMO asks of the system's interface once it has started, so that the device tests can see the effect. It uses the public API only and runs on every platform.
GLUTTER_DEMO is a list of words separated by commas:
landscape, portrait SystemChrome.setPreferredOrientations immersive, leanback SystemChrome.setEnabledSystemUIMode, the bars hidden edge the mode edgeToEdge, edge-late the same three seconds later style-dark an overlay style with dark icons on a light bar, style-light the other haptic, sound HapticFeedback and SystemSound, one of each keepon the screen stays on (the window's KeepScreenOn)
Run it on a device or the emulator with:
go run ./cmd/glutter-android run ./examples/dev/android-system