Skip to main content

detect_reduced_motion

Function detect_reduced_motion 

Source
pub fn detect_reduced_motion() -> bool
Expand description

Detect whether the user prefers reduced motion without caching.

Unlike prefers_reduced_motion(), this function queries the OS every time it is called and never caches the result. Use this when polling for accessibility preference changes.

See prefers_reduced_motion() for platform behavior details.