GlassReducedMotionPolicy

Controls whether Glass motion is reduced.

hazeGlass applies it to interaction responses. hazeGlassContainer applies it to member transitions.

Entries

Link copied to clipboard

Follows the current platform motion-duration scale. At a non-zero scale, interaction responses and container member transitions run under that scale. At zero (animations off), interaction responses behave as Reduced and snap, and container member transitions snap with no transition, as with GlassMemberTransition.None.

Link copied to clipboard

Reduces motion: interaction scale motion is disabled and animated responses snap to their targets. Container member transitions keep the morph with a critically damped spring at full duration, with no overshoot, whatever the platform motion-duration scale is.

Link copied to clipboard

Preserves full motion regardless of the platform motion-duration scale.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.