checkVisualMediaPermissions

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

Requests the correct visual media permissions (image/video) based on the device's API level.

Parameters

view

The view used to obtain context.

onPermissionResult

Action invoked when the permission request is completed.