checkAudioPermissions

fun checkAudioPermissions(view: View, onPermissionResult: (Map<String, Boolean>) -> Unit)

Requests the correct audio media permissions based on the device's API level.

Parameters

view

The view used to obtain context.

onPermissionResult

Action invoked when the permission request is completed.