CallAppBar
fun CallAppBar(call: Call, modifier: Modifier = Modifier, onBackPressed: () -> Unit = {}, onCallAction: (CallAction) -> Unit = {}, title: String = stringResource(id = R.string.stream_video_default_app_bar_title), leadingContent: @Composable RowScope.() -> Unit? = {
DefaultCallAppBarLeadingContent(onBackPressed)
}, centerContent: @Composable RowScope.() -> Unit? = {
DefaultCallAppBarCenterContent(call, title)
}, trailingContent: @Composable RowScope.() -> Unit? = {
LeaveCallAction {
onCallAction(LeaveCall)
}
})
Represents the default AppBar that's shown in calls. Exposes handlers for the two default slot component implementations (leading and trailing).
Exposes slots required to customize the look and feel.
Parameters
call
The call that contains all the participants state and tracks.
modifier
Modifier for styling.
onBackPressed
Handler when the user taps on the default leading content slot.
leadingContent
The leading content, by default DefaultCallAppBarLeadingContent.
centerContent
The center content, by default DefaultCallAppBarCenterContent.
trailingContent
The trailing content, by default DefaultCallAppBarTrailingContent.