{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

IntOffset.Companion

public static class IntOffset.Companion


Summary

Public methods

static final @NonNull IntOffset

Extension functions

static final @NonNull TwoWayConverter<@NonNull IntOffset, @NonNull AnimationVector2D>

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

static final @NonNull IntOffset

Visibility threshold for IntOffset.

Public methods

getZero

public static final @NonNull IntOffset getZero()

Extension functions

VectorConvertersKt.getVectorConverter

public static final @NonNull TwoWayConverter<@NonNull IntOffset, @NonNull AnimationVector2DVectorConvertersKt.getVectorConverter(
    @NonNull IntOffset.Companion receiver
)

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

VisibilityThresholdsKt.getVisibilityThreshold

public static final @NonNull IntOffset VisibilityThresholdsKt.getVisibilityThreshold(
    @NonNull IntOffset.Companion receiver
)

Visibility threshold for IntOffset. 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.