ChannelTopBar

fun ChannelTopBar(modifier: Modifier = Modifier, channelCoverModels: List<ImageModel> = listOf(), channelTitle: String = "", channelDescription: String = "", onNavigationIconClick: () -> Unit = {}, onActionClick: () -> Unit = {}, title: @Composable () -> Unit = { ChannelTopBarTitle( coverModels = channelCoverModels, title = channelTitle, description = channelDescription, modifier = Modifier.padding(horizontal = 8.dp) ) }, navigationIcon: @Composable () -> Unit = { BackButton(onClick = onNavigationIconClick) }, action: @Composable () -> Unit = { SendbirdIconButton( icon = painterResource(id = R.drawable.icon_info), contentDescription = stringResource(id = R.string.sb_view_header_right_button_description), modifier = Modifier.size(32.dp), onClick = onActionClick ) })

The top bar for the ChannelScreen.

Since

1.0.0

Parameters

modifier

The modifier to be applied to the view.

channelCoverModels

The list of cover images to be displayed on the top bar.

channelTitle

The title to be displayed on the top bar.

channelDescription

The description to be displayed on the top bar.

onNavigationIconClick

The handler for when the navigation icon is clicked.

onActionClick

The handler for when the action is clicked.

title

The title Composable to be displayed on the top bar. Defaults to TopBarTitleText with R.string.sb_text_header_create_channel.

navigationIcon

The icon Composable to be displayed on the top bar's navigation icon. Defaults to BackButton.

action

The action Composable to be displayed on the top bar. Defaults to SendbirdTextButton with user selection count.

See also