nativeprems library

Public API for checking permission status, requesting permissions, checking service status, and opening app settings.

Classes

NativePermsPlatform
Platform interface for nativeprems. Lives inside this package (not a separate *_platform_interface package) — there is no plan to publish out-of-tree platform implementations.
Permission
Defines the permissions that the plugin supports.
PermissionWithService
A Permission that also exposes a system-level service status, e.g. "is location services on" for Permission.location or "is Bluetooth radio on" for Permission.bluetooth.

Enums

PermissionStatus
Result of a permission check or request.
ServiceStatus
State of a system service backing a permission (location services on/off, bluetooth radio on/off, …).

Extensions

FuturePermissionStatusGetters on Future<PermissionStatus>
Convenience getters on async statuses for one-line use: if (await Permission.camera.status.isGranted) ...
FutureServiceStatusGetters on Future<ServiceStatus>
PermissionActions on Permission
Per-permission actions: Permission.camera.status, .request(), ...
PermissionListActions on List<Permission>
Batch actions: [Permission.camera, Permission.microphone].request().
PermissionStatusGetters on PermissionStatus
Convenience getters for readable permission status checks.
ServiceStatusGetters on ServiceStatus

Functions

openAppSettings() Future<bool>
Open the application's settings page so the user can grant permissions they previously denied. Returns true if the page was successfully opened.