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
The call contains states and will be rendered with participants.
Represent the call type is a video or an audio.
Weather or not the app bar will be shown.
Content shown for the call header.
Content shown for call details, such as call participant information.
Content shown for controlling call, such as accepting a call or declining a call.
Handler when the user taps on the back button.
Handler used when the user interacts with Call UI.
Content is shown when the call is accepted.
Content is shown when the call is rejected.
Content is shown when a receiver did not answer on time.