- usePermissions(): {
cameraPermissions: undefined | PermissionStatus;
getPermissions: (() => Promise<void>);
} Returns {
cameraPermissions: undefined | PermissionStatus;
getPermissions: (() => Promise<void>);
}
cameraPermissions: undefined | PermissionStatus
getPermissions: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
Custom hook for obtaining camera permissions.