CupertinoGestureNavigationDecoration
class CupertinoGestureNavigationDecoration(enterOffsetFraction: Float = 0.25f, swipeThreshold: ThresholdConfig = FractionalThreshold(0.4f), swipeBackFromNestedScroll: Boolean = true, onBackInvoked: () -> Unit) : NavDecoration(source)
Cupertino specific version of GestureNavigationDecoration. This is shipped as common code, to allow easier debugging and testing of this implementation from any platform.
Parameters
enterOffsetFraction
The fraction (from 0f to 1f) of the entering content's width which the content starts from. Defaults to 0.25f (25%).
swipeThreshold
The threshold used for determining whether the swipe has 'triggered' a back event or not. Defaults a swipe of at least 40% of the width.
swipeBackFromNestedScroll
Whether nested scroll events should be used to perform gesture navigation. This is useless when you have full width horizontally scrolling layouts. Defaults to true.
Constructors
Link copied to clipboard
constructor(enterOffsetFraction: Float = 0.25f, swipeThreshold: ThresholdConfig = FractionalThreshold(0.4f), swipeBackFromNestedScroll: Boolean = true, onBackInvoked: () -> Unit)
Functions
Link copied to clipboard
open override fun <T> DecoratedContent(args: ImmutableList<T>, backStackDepth: Int, modifier: Modifier, content: @Composable (T) -> Unit)