Package-level declarations

Functions

Link copied to clipboard
fun ComposerLinkPreview(modifier: Modifier = Modifier, linkPreview: LinkPreview, onContentClick: (linkPreview: LinkPreview) -> Unit? = null, onCancelClick: () -> Unit? = null)

Shows the link image preview, the title of the link as well as its description.

Link copied to clipboard
fun CoolDownIndicator(coolDownTime: Int, modifier: Modifier = Modifier)

Represent a timer that show the remaining time until the user is allowed to send the next message.

Link copied to clipboard
fun InputField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, maxLines: Int = Int.MAX_VALUE, border: BorderStroke = BorderStroke(1.dp, ChatTheme.colors.borderCoreDefault), innerPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), keyboardOptions: KeyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences), visualTransformation: VisualTransformation = DefaultInputFieldVisualTransformation( typography = ChatTheme.typography, colors = ChatTheme.colors, ), decorationBox: @Composable (innerTextField: @Composable () -> Unit) -> Unit)

Custom input field that we use for our UI. It's fairly simple - shows a basic input with clipped corners and a border stroke, with some extra padding on each side.

Link copied to clipboard
fun MessageInput(messageComposerState: MessageComposerState, modifier: Modifier = Modifier, onValueChange: (String) -> Unit = {}, onAttachmentRemoved: (Attachment) -> Unit = {}, onCancelAction: () -> Unit = {}, onLinkPreviewClick: (LinkPreview) -> Unit? = null, onCancelLinkPreviewClick: () -> Unit? = null, onSendClick: (String, List<Attachment>) -> Unit = { _, _ -> }, onAlsoSendToChannelChange: (Boolean) -> Unit = {}, recordingActions: AudioRecordingActions = AudioRecordingActions.None, onActiveCommandDismiss: () -> Unit = {})

Input field for the Messages/Conversation screen. Allows label customization, as well as handlers when the input changes.