public interface RemoteMotionScheme
A motion scheme provides all the RemoteAnimationSpecs for a RemoteMaterialTheme.
Motion schemes are designed to create a harmonious motion for components in the app. This is the Remote Compose counterpart of androidx.wear.compose.material3.MotionScheme.
There are two built-in schemes, a standard and an expressive, that can be used as-is or customized.
The animation specs are written into the remote document when it is created, so the motion scheme is chosen at creation time and doesn't change on the player.
Functions
defaultSpatialSpec
public fun defaultSpatialSpec(): RemoteAnimationSpec
A default spatial motion RemoteAnimationSpec.
This motion spec is designed to be applied to animations that can overshoot their targets, such as shape or bounds animations. For color, alpha or other animations which have strict limits use the effects equivalent.
fastSpatialSpec
public fun fastSpatialSpec(): RemoteAnimationSpec
A fast spatial motion RemoteAnimationSpec.
This motion spec is designed to be applied to animations that can overshoot their targets, such as shape or bounds animations. For color, alpha or other animations which have strict limits use the effects equivalent.
slowSpatialSpec
public fun slowSpatialSpec(): RemoteAnimationSpec
A slow spatial motion RemoteAnimationSpec.
This motion spec is designed to be applied to animations that can overshoot their targets, such as shape or bounds animations. For color, alpha or other animations which have strict limits use the effects equivalent.
defaultEffectsSpec
public fun defaultEffectsSpec(): RemoteAnimationSpec
A default effects motion RemoteAnimationSpec.
This motion spec is designed to be applied to animations that have strict limits and which shouldn't overshoot their targets, such as color or alpha animations. For shape, bounds or other animations which don't have strict limits use the spatial equivalent.
fastEffectsSpec
public fun fastEffectsSpec(): RemoteAnimationSpec
A fast effects motion RemoteAnimationSpec.
This motion spec is designed to be applied to animations that have strict limits and which shouldn't overshoot their targets, such as color or alpha animations. For shape, bounds or other animations which don't have strict limits use the spatial equivalent.
slowEffectsSpec
public fun slowEffectsSpec(): RemoteAnimationSpec
A slow effects motion RemoteAnimationSpec.
This motion spec is designed to be applied to animations that have strict limits and which shouldn't overshoot their targets, such as color or alpha animations. For shape, bounds or other animations which don't have strict limits use the spatial equivalent.
Members
Companion
public companion object
Functions
standard
public fun standard(): RemoteMotionScheme
Returns a standard Material motion scheme.
The standard scheme is Material's basic motion scheme for utilitarian UI elements and recurring interactions. It provides a linear motion feel. This is the default motion scheme of RemoteMaterialTheme, as in Wear Compose Material 3.
expressive
public fun expressive(): RemoteMotionScheme
Returns an expressive Material motion scheme.
The expressive scheme is Material's recommended motion scheme for prominent UI elements and hero interactions. It provides a visually engaging motion feel.