AndroidPermissionDef class
Definition for an Android permission.
- Inheritance
-
- Object
- PermissionDef
- AndroidPermissionDef
Constructors
Properties
-
docNotes
→ Set<
String> ? -
Additional notes for documentation purposes.
finalinherited
- group → String
-
The group this permission belongs to (e.g., 'Camera', 'Location').
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- key → String
-
The unique key for the permission (e.g., 'android.permission.CAMERA' or 'NSCameraUsageDescription').
finalinherited
-
keywords
→ Set<
String> -
Keywords used to search for this permission.
finalinherited
-
legacyKeys
→ Map<
String, int> ? -
Legacy keys that were used in older Android versions, mapped to their max SDK version.
final
- name → String
-
Returns the name (key) of the permission.
no setterinherited
- platform → String
-
The platform this permission applies to ('android' or 'ios').
finalinherited
- promptNote → String?
-
Returns a note to prompt the user with, if applicable (e.g., version constraints).
no setteroverride
- runtime → bool
-
Whether this permission requires runtime requests (dangerous permissions).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service → AssociatedService?
-
The service associated with this permission, if any.
finalinherited
- sinceSDK → int?
-
The SDK version since which this permission is available.
final
- untilApi → int?
-
The API level until which this permission is valid (deprecated or removed after).
final
Methods
-
matches(
String input) → bool -
Checks if the input string matches this permission's key or common aliases.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override