Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class RevealState(val maxRevealDp: Dp = 75.dp, val directions: Set<RevealDirection>, density: Density, initialValue: RevealValue = RevealValue.Default)
Link copied to clipboard

Possible values of RevealState.

Functions

Link copied to clipboard
fun BaseRevealSwipe(modifier: Modifier = Modifier, enableSwipe: Boolean = true, animateBackgroundCardColor: Boolean = true, shape: CornerBasedShape, alphaEasing: Easing = CubicBezierEasing(0.4f, 0.4f, 0.17f, 0.9f), backgroundCardStartColor: Color, backgroundCardEndColor: Color, card: @Composable BoxScope.(shape: Shape, content: @Composable ColumnScope.() -> Unit) -> Unit, state: RevealState = rememberRevealState( maxRevealDp = 75.dp, directions = setOf( RevealDirection.StartToEnd, RevealDirection.EndToStart ) ), flingBehavior: FlingBehavior? = AnchoredDraggableDefaults.flingBehavior( state = state.anchoredDraggableState, positionalThreshold = { distance: Float -> distance * 0.5f }, animationSpec = tween() ), hiddenContentEnd: @Composable BoxScope.() -> Unit = {}, hiddenContentStart: @Composable BoxScope.() -> Unit = {}, content: @Composable BoxScope.(Shape) -> Unit)
Link copied to clipboard
fun rememberRevealState(maxRevealDp: Dp = 75.dp, directions: Set<RevealDirection> = setOf(RevealDirection.StartToEnd, RevealDirection.EndToStart)): RevealState

Create and remember a RevealState with the default animation clock.

Link copied to clipboard
suspend fun RevealState.reset()

Reset the component to the default position, with an animation.

Link copied to clipboard
suspend fun RevealState.resetFast()

Reset the component to the default position, with an animation.

Link copied to clipboard
fun RevealSwipe(modifier: Modifier = Modifier, enableSwipe: Boolean = true, onContentClick: () -> Unit? = null, onContentLongClick: (DpOffset) -> Unit? = null, backgroundStartActionLabel: String?, onBackgroundStartClick: () -> Boolean = { true }, backgroundEndActionLabel: String?, onBackgroundEndClick: () -> Boolean = { true }, closeOnContentClick: Boolean = true, closeOnBackgroundClick: Boolean = true, shape: CornerBasedShape, alphaEasing: Easing = CubicBezierEasing(0.4f, 0.4f, 0.17f, 0.9f), backgroundCardStartColor: Color, backgroundCardEndColor: Color, card: @Composable BoxScope.(shape: Shape, content: @Composable ColumnScope.() -> Unit) -> Unit, coroutineScope: CoroutineScope = rememberCoroutineScope(), state: RevealState = rememberRevealState( maxRevealDp = 75.dp, directions = setOf( RevealDirection.StartToEnd, RevealDirection.EndToStart ) ), hiddenContentEnd: @Composable BoxScope.() -> Unit = {}, hiddenContentStart: @Composable BoxScope.() -> Unit = {}, content: @Composable (Shape) -> Unit)