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-alpha16
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.

Returns
RemoteMotionScheme

the expressive RemoteMotionScheme

standard

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

Returns
RemoteMotionScheme

the standard RemoteMotionScheme

Public functions

defaultEffectsSpec

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

Returns
RemoteAnimationSpec

a RemoteAnimationSpec for default effects motion

defaultSpatialSpec

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

Returns
RemoteAnimationSpec

a RemoteAnimationSpec for default spatial motion

fastEffectsSpec

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

Returns
RemoteAnimationSpec

a RemoteAnimationSpec for fast effects motion

fastSpatialSpec

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

Returns
RemoteAnimationSpec

a RemoteAnimationSpec for fast spatial motion

slowEffectsSpec

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

Returns
RemoteAnimationSpec

a RemoteAnimationSpec for slow effects motion

slowSpatialSpec

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

Returns
RemoteAnimationSpec

a RemoteAnimationSpec for slow spatial motion