Offset.Companion


Summary

Public properties

Offset

An offset with infinite x and y components.

Cmn
Offset

Represents an unspecified Offset value, usually a replacement for null when a primitive value is desired.

Cmn
Offset

An offset with zero magnitude.

Cmn

Extension properties

TwoWayConverter<OffsetAnimationVector2D>

A type converter that converts a Offset to a AnimationVector2D, and vice versa.

Cmn
Offset

Visibility threshold for Offset.

Cmn

Public properties

Infinite

val InfiniteOffset

An offset with infinite x and y components.

See also isFinite to check whether both components are finite.

Unspecified

val UnspecifiedOffset

Represents an unspecified Offset value, usually a replacement for null when a primitive value is desired.

Zero

val ZeroOffset

An offset with zero magnitude.

This can be used to represent the origin of a coordinate space.

Extension properties

VectorConverter

val Offset.Companion.VectorConverterTwoWayConverter<OffsetAnimationVector2D>

A type converter that converts a Offset to a AnimationVector2D, and vice versa.

VisibilityThreshold

val Offset.Companion.VisibilityThresholdOffset

Visibility threshold for Offset. This defines the amount of value change that is considered to be no longer visible. The animation system uses this to signal to some default spring animations to stop when the value is close enough to the target.