Package-level declarations

Types

Link copied to clipboard

Scope for the LaunchPermissionRequest composable. Used to register the content callbacks for when the permissions are available or not.

Link copied to clipboard

Permission state interface that allows you to request Android permissions or check if those permissions are granted or not.

Functions

Link copied to clipboard
fun LaunchCallPermissions(call: Call, onPermissionsResult: (Map<String, Boolean>) -> Unit? = null, onAllPermissionsGranted: suspend () -> Unit? = null)

Lunch call permissions about:

Link copied to clipboard
fun LaunchCameraPermissions(call: Call, onPermissionsResult: (Boolean) -> Unit)

Lunch call permissions about:

Link copied to clipboard
fun LaunchMicrophonePermissions(call: Call, onPermissionsResult: (Boolean) -> Unit)

Lunch call permissions about:

Link copied to clipboard

An API to ensure that the list of permissions is granted.

Link copied to clipboard

Remember VideoPermissionsState about the bluetooth permission.

Link copied to clipboard
fun rememberCallPermissionsState(call: Call, permissions: List<String> = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { mutableListOf( android.Manifest.permission.CAMERA, android.Manifest.permission.RECORD_AUDIO, android.Manifest.permission.BLUETOOTH_CONNECT, ) } else { mutableListOf( android.Manifest.permission.CAMERA, android.Manifest.permission.RECORD_AUDIO, ) }, onPermissionsResult: (Map<String, Boolean>) -> Unit? = null, onAllPermissionsGranted: suspend () -> Unit? = null): VideoPermissionsState

Remember call related Android permissions below:

Link copied to clipboard
fun rememberCameraPermissionState(call: Call, onPermissionsResult: (Boolean) -> Unit = { isGranted -> if (isGranted) { call.camera.setEnabled(true, fromUser = false) } }): VideoPermissionsState

Remember VideoPermissionsState about the camera permission.

Link copied to clipboard
fun rememberMicrophonePermissionState(call: Call, onPermissionsResult: (Boolean) -> Unit = { isGranted -> if (isGranted) { call.microphone.setEnabled(true, fromUser = false) } }): VideoPermissionsState

Remember VideoPermissionsState about the microphone permission.