AiAnswerDrawer

class AiAnswerDrawer(modifier: Modifier = Modifier, customBackgroundColor: Color, onSelected: (Boolean, Int) -> Unit, dragIconWidth: Dp, config: DrawConfig, onDragHover: (Int) -> Unit, onDragStart: () -> Unit, onDragStop: () -> Unit, moveRequest: (Action.Move) -> Unit, endContent: @Composable (StoryStep, DrawInfo, Boolean) -> Unit? = null, enabled: Boolean, paddingValues: PaddingValues = PaddingValues(0.dp)) : StoryStepDrawer

Drawer for a complex message with swipe action, drag and drop logic and a start content to add functionality like a checkbox or a different Composable.

Constructors

Link copied to clipboard
constructor(modifier: Modifier = Modifier, customBackgroundColor: Color, onSelected: (Boolean, Int) -> Unit, dragIconWidth: Dp, config: DrawConfig, onDragHover: (Int) -> Unit, onDragStart: () -> Unit, onDragStop: () -> Unit, moveRequest: (Action.Move) -> Unit, endContent: @Composable (StoryStep, DrawInfo, Boolean) -> Unit? = null, enabled: Boolean, paddingValues: PaddingValues = PaddingValues(0.dp))

Functions

Link copied to clipboard
open override fun Step(step: StoryStep, drawInfo: DrawInfo)

Draws the StoryStep including its DrawInfo