pub fn set_reduce_motion_preference(
preference: ReduceMotionPreference,
cx: &mut App,
)Expand description
Selects the application’s reduced-motion preference.
ReduceMotionPreference::Reduce and ReduceMotionPreference::Allow set
App::reduce_motion and prevent Base’s system readings from changing it,
even when the value already matches. The application can still change the
flag directly; system readings continue to be cached.
ReduceMotionPreference::System releases application ownership, resumes
the last known system value and calls apply_system_reduce_motion through
the existing platform mechanism. If no system value is known, the current
flag is kept until a reading arrives. On Linux, an existing portal listener
supplies updates; selecting System does not restart it or force a new read.
System also releases ownership taken through App::set_reduce_motion.
Under the test scheduler, explicit choices and cached readings still apply,
but the platform is never queried.