Skip to main content

subscribe

Function subscribe 

Source
pub fn subscribe(notify: Arc<dyn Fn() + Send + Sync>) -> WindowSizeSubscription
Expand description

Registers notify to be called each time the window’s measured size changes. What notify does is the runtime’s business: mark a scope dirty, most often.