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

VisibilityThresholdsKt

public final class VisibilityThresholdsKt


Summary

Public methods

static final @NonNull Dp

Visibility threshold for Dp.

static final @NonNull DpOffset

Visibility threshold for DpOffset.

static final int

Visibility threshold for Int.

static final @NonNull IntOffset

Visibility threshold for IntOffset.

static final @NonNull IntSize

Visibility threshold for IntSize.

static final @NonNull Offset

Visibility threshold for Offset.

static final @NonNull Rect

Visibility threshold for Rect.

static final @NonNull Size

Visibility threshold for Size.

Public methods

getVisibilityThreshold

public static final @NonNull Dp getVisibilityThreshold(@NonNull Dp.Companion receiver)

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

getVisibilityThreshold

public static final @NonNull DpOffset getVisibilityThreshold(@NonNull DpOffset.Companion receiver)

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

getVisibilityThreshold

public static final int getVisibilityThreshold(@NonNull IntCompanionObject receiver)

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

getVisibilityThreshold

public static final @NonNull IntOffset 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.

getVisibilityThreshold

public static final @NonNull IntSize 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.

getVisibilityThreshold

public static final @NonNull Offset getVisibilityThreshold(@NonNull Offset.Companion receiver)

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.

getVisibilityThreshold

public static final @NonNull Rect getVisibilityThreshold(@NonNull Rect.Companion receiver)

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

getVisibilityThreshold

public static final @NonNull Size getVisibilityThreshold(@NonNull Size.Companion receiver)

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