CallContent

fun CallContent(call: Call, modifier: Modifier = Modifier, layout: LayoutType = LayoutType.DYNAMIC, permissions: VideoPermissionsState = rememberCallPermissionsState(call = call), onBackPressed: () -> Unit = {}, onCallAction: (CallAction) -> Unit = { DefaultOnCallActionHandler.onCallAction(call, it) }, appBarContent: @Composable (call: Call) -> Unit = { CallAppBar( call = call, onCallAction = onCallAction, ) }, style: VideoRendererStyle = RegularVideoRendererStyle(), videoRenderer: @Composable (modifier: Modifier, call: Call, participant: ParticipantState, style: VideoRendererStyle) -> Unit = { videoModifier, videoCall, videoParticipant, videoStyle -> ParticipantVideo( modifier = videoModifier, call = videoCall, participant = videoParticipant, style = videoStyle, ) }, floatingVideoRenderer: @Composable BoxScope.(call: Call, IntSize) -> Unit? = null, videoContent: @Composable RowScope.(call: Call) -> Unit = { ParticipantsLayout( layoutType = layout, call = call, modifier = Modifier .fillMaxSize() .weight(1f) .padding(bottom = VideoTheme.dimens.spacingXXs), style = style, videoRenderer = videoRenderer, floatingVideoRenderer = floatingVideoRenderer, ) }, videoOverlayContent: @Composable (call: Call) -> Unit = {}, controlsContent: @Composable (call: Call) -> Unit = { ControlActions( modifier = Modifier.wrapContentWidth(), call = call, onCallAction = onCallAction, ) }, enableInPictureInPicture: Boolean = true, pictureInPictureContent: @Composable (Call) -> Unit = { DefaultPictureInPictureContent(it) }, enableDiagnostics: Boolean = false)

Represents the UI in an Active call that shows participants and their video, as well as some extra UI features to control the call settings, browse participants and more.

Parameters

call

The call includes states and will be rendered with participants.

modifier

Modifier for styling.

layout

the type of layout that the call content will display LayoutType

onBackPressed

Handler when the user taps on the back button.

permissions

Android permissions that should be required to render a video call properly.

onCallAction

Handler when the user triggers a Call Control Action.

appBarContent

Content is shown that calls information or additional actions.

style

Defined properties for styling a single video call track.

videoRenderer

A single video renderer renders each individual participant.

floatingVideoRenderer

A floating video renderer renders an individual participant.

videoContent

Content is shown that renders all participants' videos.

videoOverlayContent

Content is shown that will be drawn over the videoContent, excludes controlsContent.

controlsContent

Content is shown that allows users to trigger different actions to control a joined call.

enableInPictureInPicture

If the user has engaged in Picture-In-Picture mode.

pictureInPictureContent

Content shown when the user enters Picture in Picture mode, if it's been enabled in the app.