permissions.check
The current status, without prompting.
Usage
Check access and offer Settings
import { app, permissions } from 'kuito';
const { status, canAskAgain } = await permissions.check('camera');
if (status === 'undetermined') await permissions.request('camera');
else if (status === 'denied' && !canAskAgain) await app.openSettings();Signatures
(name: Name): Promise<Response>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | PermissionName | Yes | — |
Returns
Promise<Response>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.