Skip to main content

sync_system_back

Function sync_system_back 

Source
pub fn sync_system_back()
Expand description

Tell the toolkit whether the platform’s system back belongs to the app’s handlers: armed while any handler is on screen and enabled (Toolkit::set_system_back). Cheap and idempotent; the toolkit hears only changes. A handler’s piece calls it whenever its enabled or the selection of a resident page around it changes, including a tab picked from code, and the event pump calls it after every batch for gates no signal reports.

While the tree is borrowed (a handler registered during a build that a toolkit call is part of), the update waits for the next safe point.