Returns {
permissionStatus: Record<Permission, PermissionStatus>;
request: (type: Permission[]) => Promise<void>;
}
An object with the current permission status and a request function to ask for permissions.
permissionStatus: Record<Permission, PermissionStatus>
request: (type: Permission[]) => Promise<void>
Custom hook that manages camera permissions.