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

ExcludeFromSystemGestureKt

public final class ExcludeFromSystemGestureKt


Summary

Public methods

static final @NonNull Modifier

This method is deprecated. Use systemGestureExclusion

static final @NonNull Modifier
excludeFromSystemGesture(
    @NonNull Modifier receiver,
    @NonNull Function1<@NonNull LayoutCoordinates, @NonNull Rect> exclusion
)

This method is deprecated. Use systemGestureExclusion

Public methods

excludeFromSystemGesture

public static final @NonNull Modifier excludeFromSystemGesture(@NonNull Modifier receiver)

Excludes the layout rectangle from the system gesture.

excludeFromSystemGesture

public static final @NonNull Modifier excludeFromSystemGesture(
    @NonNull Modifier receiver,
    @NonNull Function1<@NonNull LayoutCoordinates, @NonNull Rect> exclusion
)

Excludes a rectangle within the local layout coordinates from the system gesture. After layout, exclusion is called to determine the Rect to exclude from the system gesture area.

The LayoutCoordinates of the Modifier's location in the layout is passed as passed as exclusion's parameter.