AudioOnlyCallContent
fun AudioOnlyCallContent( modifier: Modifier = Modifier, call: Call, isMicrophoneEnabled: Boolean, permissions: VideoPermissionsState = rememberCallPermissionsState(
call = call,
permissions = listOf(
android.Manifest.permission.RECORD_AUDIO,
),
), isShowingHeader: Boolean = true, headerContent: @Composable ColumnScope.() -> Unit? = null, durationPlaceholder: String = "", detailsContent: @Composable ColumnScope.(remoteParticipants: List<ParticipantState>, topPadding: Dp) -> Unit? = null, controlsContent: @Composable BoxScope.() -> Unit? = null, onCallAction: (CallAction) -> Unit = { action: CallAction ->
DefaultOnCallActionHandler.onCallAction(call, action)
}, onBackPressed: () -> Unit = {})
Represents the UI for an active audio-only call. By default, it shows the current participants that are in the call.
Parameters
modifier
Modifier for styling.
call
The call to be rendered.
isMicrophoneEnabled
Weather or not the microphone icon will show the mic as enabled or not.
permissions
Android permissions that should be requested.
isShowingHeader
If true, header content is shown.
headerContent
Content that overrides the header.
durationPlaceholder
Content (text) shown while the duration is not available.
detailsContent
Content that overrides the details (the middle part of the screen).
controlsContent
Content that allows users to trigger call actions. See CallAction.
onCallAction
Handler used when the user triggers a CallAction.
onBackPressed
Handler used when the user taps on the back button.