checkVisualMediaPermissions
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.