PermissionResponse
Whether the app holds a permission, and whether asking again can still show the system prompt.
Usage
Turn a permission result into an actionable message.
// Turn a permission result into an actionable message.
import { permissions, type PermissionResponse, type PermissionStatus } from 'kuito';
export async function cameraAccess(): Promise<string> {
const result: PermissionResponse = await permissions.request('camera');
const status: PermissionStatus = result.status;
if (status === 'granted') return 'Camera ready';
return result.canAskAgain ? 'Camera access was declined' : 'Enable camera access in Settings';
}Type declaration
export type PermissionResponse = Response;Members 2
| Name | Type | Required | Description |
|---|---|---|---|
status | PermissionStatus | Yes | — |
canAskAgain | boolean | Yes | False when request cannot show the system prompt; only Settings can change it (app.openSettings). |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.