Package-level declarations

Properties

Link copied to clipboard

The animation duration of each dot.

Functions

Link copied to clipboard
fun BackButton(painter: Painter, onBackPressed: () -> Unit, modifier: Modifier = Modifier)

Basic back button, that shows an icon and calls onBackPressed when tapped.

Link copied to clipboard
fun CancelIcon(modifier: Modifier = Modifier, onClick: () -> Unit)

Represents a simple cancel icon that is used primarily for attachments.

Link copied to clipboard
fun EmptyContent(text: String, painter: Painter, modifier: Modifier = Modifier)

The view that's shown when there's no data available. Consists of an icon and a caption below it.

Link copied to clipboard
fun LoadingFooter(modifier: Modifier = Modifier)

Shows the loading footer UI in lists.

Link copied to clipboard
fun LoadingIndicator(modifier: Modifier = Modifier)

Shows the default loading UI.

Link copied to clipboard
fun NetworkLoadingIndicator(modifier: Modifier = Modifier, spinnerSize: Dp = 18.dp, textStyle: TextStyle = ChatTheme.typography.title3Bold, textColor: Color = ChatTheme.colors.textHighEmphasis)

Represents the default network loading view for the header, in case the network is down.

Link copied to clipboard
fun OnlineIndicator(modifier: Modifier = Modifier)

Component that represents an online indicator to be used with io.getstream.chat.android.compose.ui.components.avatar.UserAvatar.

Link copied to clipboard
fun SearchInput(query: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, onSearchStarted: () -> Unit = {}, leadingIcon: @Composable RowScope.() -> Unit = { DefaultSearchLeadingIcon() }, label: @Composable () -> Unit = { DefaultSearchLabel() })

The search component that allows the user to fill in a search query and filter their items.

Link copied to clipboard
fun SimpleDialog(title: String, message: String, onPositiveAction: () -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier, showDismissButton: Boolean = true)

Generic dialog component that allows us to prompt the user.

Link copied to clipboard
fun SimpleMenu(modifier: Modifier = Modifier, shape: Shape = ChatTheme.shapes.bottomSheet, overlayColor: Color = ChatTheme.colors.overlay, onDismiss: () -> Unit = {}, headerContent: @Composable ColumnScope.() -> Unit = {}, centerContent: @Composable ColumnScope.() -> Unit = {})

Represents a reusable and generic modal menu useful for showing info about selected items.

Link copied to clipboard
fun Timestamp(date: Date?, modifier: Modifier = Modifier, formatter: DateFormatter = ChatTheme.dateFormatter, formatType: DateFormatType = DATE)

Represents a timestamp in the app, that's used primarily for channels and messages.

Link copied to clipboard
fun TranslatedLabel(translatedTo: String, modifier: Modifier = Modifier)

Represents a label translated within the app. This label is primarily used for channels and messages, typically adjacent to the Timestamp.

Link copied to clipboard
fun TypingIndicator(modifier: Modifier = Modifier)

Represents a simple typing indicator that consists of three animated dots.

Link copied to clipboard
fun TypingIndicatorAnimatedDot(initialDelayMillis: Int)

Show a dot with infinite alpha animation.