RingingCallContent

fun RingingCallContent(call: Call, modifier: Modifier = Modifier, isVideoType: Boolean = true, isShowingHeader: Boolean = true, 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 = { DefaultOnCallActionHandler.onCallAction(call, it) }, onAcceptedContent: @Composable () -> Unit, onRejectedContent: @Composable () -> Unit = {}, onNoAnswerContent: @Composable () -> Unit = {}, onIncomingContent: @Composable (modifier: Modifier, call: Call, isVideoType: Boolean, isShowingHeader: Boolean, headerContent: @Composable ColumnScope.() -> Unit?, detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit?, controlsContent: @Composable BoxScope.() -> Unit?, onBackPressed: () -> Unit, onCallAction: (CallAction) -> Unit) -> Unit? = null, onOutgoingContent: @Composable (modifier: Modifier, call: Call, isVideoType: Boolean, isShowingHeader: Boolean, headerContent: @Composable ColumnScope.() -> Unit?, detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit?, controlsContent: @Composable BoxScope.() -> Unit?, onBackPressed: () -> Unit, onCallAction: (CallAction) -> Unit) -> Unit? = null, onIdle: @Composable () -> Unit = {})

Represents different outgoing/incoming call content based on the call state provided from the call.

Depending on the call state, we show CallContent, IncomingCallContent or OutgoingCallContent respectively.

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.

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.

onAcceptedContent

Content is shown when the call is accepted.

onRejectedContent

Content is shown when the call is rejected.

onNoAnswerContent

Content is shown when a receiver did not answer on time.