permissions.PermissionName
What an app can ask for. location is "when in use"; locationAlways is
location in the background too, and asks for location first.
Verwendung
Check access and offer Settings
Dieser Typ wird verwendet von permissions.check
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();Typdeklaration
export type PermissionName = Name;Typ
"camera" | "microphone" | "photos" | "location" | "locationAlways" | "notifications"Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.