Skip to main content

VisibilityCallback

Type Alias VisibilityCallback 

Source
pub type VisibilityCallback = Rc<dyn Fn(PageVisibility)>;
Expand description

A page-visibility observer, registered per page via PushOptions::on_visibility (or NavigatorView::on_root_visibility for the root page). Fired by the navigator from a rebuild whenever the page’s PageVisibility changes — never twice with the same value.

Aliased Type§

pub struct VisibilityCallback { /* private fields */ }