permissions library
Permissions - Flutter Native Toolkit
This module contains permission constants and mappings for Android and iOS. It provides:
- A comprehensive list of 100+ permissions organized by category
- Mappings between permission keys and platform-specific values
- Helper functions for permission lookup and management Permission constants and mappings for Android and iOS platforms.
This library exports all permission-related types and helper functions needed for managing native permissions in Flutter projects.
Classes
- PermissionInfo
- Represents a permission with its Android and iOS equivalents.
Enums
- PermissionCategory
- Categories for organizing permissions in the interactive menu.
Constants
-
allPermissions
→ const List<
PermissionInfo> - Complete list of all available permissions.
Properties
-
androidPermissions
→ Map<
String, String> -
A map of user-friendly CLI keys to Android Manifest permission strings.
final
-
iosDefaultDescriptions
→ Map<
String, String> -
A map of permission keys to iOS default usage descriptions.
final
-
iosPermissionKeys
→ Map<
String, String> -
A map of permission keys to iOS plist keys.
final
Functions
-
findPermission(
String key) → PermissionInfo? - Finds a PermissionInfo by its key.
-
getAndroidPermission(
String key) → String - Gets the Android permission string for a given key.
-
getIosDefaultDescription(
String key) → String? - Gets the iOS default description for a given permission key.
-
getIosPermissionKey(
String key) → String? - Gets the iOS plist key for a given permission key.
-
getPermissionsByCategory(
) → Map< PermissionCategory, List< PermissionInfo> > - Groups all permissions by their category.