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.

Summary

Public companion functions

RemoteMotionScheme

Returns an expressive Material motion scheme.

RemoteMotionScheme

Returns a standard Material motion scheme.

Public companion functions

expressive

Added in 1.0.0-alpha14
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.

standard

Added in 1.0.0-alpha14
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.

Public functions

defaultEffectsSpec

Added in 1.0.0-alpha14
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.

defaultSpatialSpec

Added in 1.0.0-alpha14
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.

fastEffectsSpec

Added in 1.0.0-alpha14
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.

fastSpatialSpec

Added in 1.0.0-alpha14
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.

slowEffectsSpec

Added in 1.0.0-alpha14
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.

slowSpatialSpec

Added in 1.0.0-alpha14
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.