Skip to main content

set_platform_accesskit

Function set_platform_accesskit 

Source
pub fn set_platform_accesskit(ctx: &Context, possible: bool)
Expand description

Tell ui.wait {for: "idle"} whether the app has work of its own pending (background jobs, a save in flight). Cheap: call it every frame. Whether a platform AccessKit adapter (a screen reader) can turn AccessKit on for ctx (true by default). With false (a context with no window, or a build without the adapter) devtools switches AccessKit off again once it has answered the requests that needed the tree. With true AccessKit stays on once a request turned it on: egui does not say whether a screen reader turned it on meanwhile, and turning it off under one would leave it a stale tree.