Usage

Check access and offer Settings

This type is used by permissions.check

tsx
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();

Type declaration

ts
export type PermissionName = Name;

Type

ts
"camera" | "microphone" | "photos" | "location" | "locationAlways" | "notifications"
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.