MotionScheme

@Immutable
interface MotionScheme

A motion scheme provides all the FiniteAnimationSpecs for a MaterialTheme.

Motion schemes are designed to create a harmonious motion for components in the app.

There are two built-in schemes, a standard and an expressive, that can be used as-is or customized.

You can customize the motion scheme for all components in the MaterialTheme.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun <T> defaultEffectsSpec(): FiniteAnimationSpec<T>

A default effects motion FiniteAnimationSpec.

Link copied to clipboard
abstract fun <T> defaultSpatialSpec(): FiniteAnimationSpec<T>

A default spatial motion FiniteAnimationSpec.

Link copied to clipboard
abstract fun <T> fastEffectsSpec(): FiniteAnimationSpec<T>

A fast effects motion FiniteAnimationSpec.

Link copied to clipboard
abstract fun <T> fastSpatialSpec(): FiniteAnimationSpec<T>

A fast spatial motion FiniteAnimationSpec.

Link copied to clipboard
abstract fun <T> slowEffectsSpec(): FiniteAnimationSpec<T>

A slow effects motion FiniteAnimationSpec.

Link copied to clipboard
abstract fun <T> slowSpatialSpec(): FiniteAnimationSpec<T>

A slow spatial motion FiniteAnimationSpec.