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

SystemGestureExclusionKt

public final class SystemGestureExclusionKt


Summary

Public methods

static final @NonNull Modifier

Excludes the layout rectangle from the system gesture.

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

Excludes a rectangle within the local layout coordinates from the system gesture.

Public methods

systemGestureExclusion

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

Excludes the layout rectangle from the system gesture.

systemGestureExclusion

public static final @NonNull Modifier systemGestureExclusion(
    @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.