Package-level declarations
Types
Link copied to clipboard
interface LaunchPermissionRequestScope
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
Lunch call permissions about:
Link copied to clipboard
Lunch call permissions about:
Link copied to clipboard
fun LaunchPermissionRequest(permissions: List<String>, content: @Composable LaunchPermissionRequestScope.() -> Unit)
An API to ensure that the list of permissions is granted.
Link copied to clipboard
fun rememberBluetoothPermissionState(call: Call, onPermissionsResult: (Boolean) -> Unit): VideoPermissionsState
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.