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

IntSize.Companion

public static class IntSize.Companion


Summary

Public methods

static final @NonNull IntSize

IntSize with a zero (0) width and height.

Extension functions

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

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

static final @NonNull IntSize

Visibility threshold for IntSize.

Public methods

getZero

public static final @NonNull IntSize getZero()

IntSize with a zero (0) width and height.

Extension functions

VectorConvertersKt.getVectorConverter

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

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

VisibilityThresholdsKt.getVisibilityThreshold

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

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