Android
public object SwipeToRevealDefaults
Defaults for Material 3 SwipeToReveal.
Functions
gestureInclusion
public fun gestureInclusion(
state: RevealState,
@FloatRange(from = 0.0, to = 1.0) edgeZoneFraction: Float = LeftEdgeZoneFraction,
): GestureInclusion
The default behaviour for when SwipeToReveal should handle gestures. In this implementation of GestureInclusion, swipe events that originate in the left edge of the screen (as determined by LeftEdgeZoneFraction) will be ignored, if the RevealState is Covered. This allows swipe-to-dismiss handlers (if present) to handle the gesture in this region.
Parameters
| state | RevealState of the SwipeToReveal. |
| edgeZoneFraction | The fraction of the screen width from the left edge where gestures should be ignored. Defaults to LeftEdgeZoneFraction. |