Custom hook that manages camera permissions.

  • 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>

      A function that requests permissions asynchronously.