Skip to main content

Module shield

Module shield 

Source
Expand description

The system-gesture / interactive-dismiss shield (docs/cover.md): the registries behind the defers_system_gestures and interactive_dismiss_disabled modifiers. Each mounted modifier pushes an entry while its subtree is alive; the union of entries is the app’s current request.

Gesture deferral flows straight to the backend (Toolkit::defer_system_gestures) on every change. Dismiss-disabled is a query: the cover piece reads it — reactively, via the change [Trigger] — when deciding whether a native back may close it and when patching the presented surface’s isModalInPresentation-style flag.

Functions§

deferred_edges
The union of every live deferral request (Edges::NONE when there are none). Untracked.
dismiss_disabled
Whether any live subtree asked to disable interactive dismissal. Reads track the change counter, so a binding re-runs as modifiers mount and unmount.
pop_dismiss_disabled
pop_gesture_deferral
push_dismiss_disabled
Register an interactive-dismiss-disabled request (an interactive_dismiss_disabled subtree mounted). Pair with pop_dismiss_disabled on unmount.
push_gesture_deferral
Register an edge-deferral request (a defers_system_gestures subtree mounted). The backend receives the new union immediately. Pair with pop_gesture_deferral on unmount.
Day API ↩ Guides· daybrite.dev