Skip to main content

subscribe_reduced_motion

Function subscribe_reduced_motion 

Source
pub fn subscribe_reduced_motion(
    notify: Arc<dyn Fn() + Send + Sync>,
) -> ReducedMotionSubscription
Expand description

Registers notify to be called each time the setting changes. A runtime’s use_reduced_motion holds one for as long as the reader it wakes is alive.