@LayoutScopeMarker
class KeyPositionsScope : BaseKeyFramesScope


Scope where multiple position KeyFrames may be defined.

See also
frame

Summary

Public functions

Unit
frame(frame: @IntRange(from = 0, to = 100) Int, keyFrameContent: KeyPositionScope.() -> Unit)

Define KeyPosition values at a given KeyFrame, where the frame is a specific progress value from 0 to 100.

Public properties

RelativePosition

Sets the coordinate space in which KeyPositions are defined.

Inherited properties

From androidx.constraintlayout.compose.BaseKeyFramesScope
Easing

The Easing curve to apply for the KeyFrames defined in this scope.

Public functions

frame

Added in 1.1.0-alpha13
fun frame(frame: @IntRange(from = 0, to = 100) Int, keyFrameContent: KeyPositionScope.() -> Unit): Unit

Define KeyPosition values at a given KeyFrame, where the frame is a specific progress value from 0 to 100.

All properties set on KeyPositionScope for this frame should also be set on other frame declarations made within this scope.

Public properties

type

Added in 1.1.0-alpha13
var typeRelativePosition

Sets the coordinate space in which KeyPositions are defined.

RelativePosition.Delta by default.