Package-level declarations

Functions

Link copied to clipboard
fun ComposerLinkPreview(modifier: Modifier = Modifier, linkPreview: LinkPreview, onClick: (linkPreview: LinkPreview) -> 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.borders), innerPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), keyboardOptions: KeyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences), 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, onValueChange: (String) -> Unit, onAttachmentRemoved: (Attachment) -> Unit, modifier: Modifier = Modifier, maxLines: Int = DefaultMessageInputMaxLines, keyboardOptions: KeyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences), label: @Composable (MessageComposerState) -> Unit = { DefaultComposerLabel(ownCapabilities = messageComposerState.ownCapabilities) }, innerLeadingContent: @Composable RowScope.() -> Unit = {}, innerTrailingContent: @Composable RowScope.() -> Unit = {})

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

Link copied to clipboard
fun MessageInputOptions(activeAction: MessageAction, onCancelAction: () -> Unit, modifier: Modifier = Modifier)

Shows the options "header" for the message input component. This is based on the currently active message action - io.getstream.chat.android.common.state.Reply or io.getstream.chat.android.common.state.Edit.