IncomingCallContent

fun IncomingCallContent(modifier: Modifier = Modifier, call: Call, isVideoType: Boolean = true, isShowingHeader: Boolean = true, backgroundContent: @Composable BoxScope.() -> Unit? = null, headerContent: @Composable ColumnScope.() -> Unit? = null, detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit? = null, controlsContent: @Composable BoxScope.() -> Unit? = null, onBackPressed: () -> Unit = {}, onCallAction: (CallAction) -> Unit = {})

Represents the Incoming Call state and UI, when the user receives a call from other people.

Parameters

call

The call contains states and will be rendered with participants.

isVideoType

Represent the call type is a video or an audio.

modifier

Modifier for styling.

isShowingHeader

Weather or not the app bar will be shown.

backgroundContent

Content shown for the call background.

headerContent

Content shown for the call header.

detailsContent

Content shown for call details, such as call participant information.

controlsContent

Content shown for controlling call, such as accepting a call or declining a call.

onBackPressed

Handler when the user taps on the back button.

onCallAction

Handler used when the user interacts with Call UI.


fun IncomingCallContent(modifier: Modifier = Modifier, call: Call, isVideoType: Boolean = true, participants: List<MemberState>, isCameraEnabled: Boolean, isShowingHeader: Boolean = true, backgroundContent: @Composable BoxScope.() -> Unit? = null, headerContent: @Composable ColumnScope.() -> Unit? = null, detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit? = null, controlsContent: @Composable BoxScope.() -> Unit? = null, onBackPressed: () -> Unit = {}, onCallAction: (CallAction) -> Unit = {})

Stateless variant of the Incoming call UI, which you can use to build your own custom logic that powers the state and handlers.

Parameters

call

The call contains states and will be rendered with participants.

isVideoType

The type of call, Audio or Video.

participants

People participating in the call.

isCameraEnabled

Whether the video should be enabled when entering the call or not.

modifier

Modifier for styling.

isShowingHeader

If the app bar header is shown or not.

backgroundContent

Content shown for the call background.

onBackPressed

Handler when the user taps on the back button.

onCallAction

Handler used when the user interacts with Call UI.