Function silkenweb::document::on_visibilitychange
source · pub fn on_visibilitychange(f: impl FnMut(Event) + 'static) -> EventCallback
Expand description
Add a visibilitychange
event handler at the document level.
This only has an effect on WASM targets.