PermissionStatus enum
Represents the current permission status for accessing contacts
Values
- notDetermined → const PermissionStatus
-
The user hasn't been asked for permission yet
const PermissionStatus('not_determined') - denied → const PermissionStatus
-
The user has denied permission
const PermissionStatus('denied') -
The user has granted full access to contacts
const PermissionStatus('authorized') - limited → const PermissionStatus
-
The user has granted limited access to contacts (iOS 14+)
const PermissionStatus('limited') - restricted → const PermissionStatus
-
The app is restricted from accessing contacts (e.g., by parental controls)
const PermissionStatus('restricted')
Properties
- canRead → bool
-
Returns true if the permission allows reading contacts
no setter
- canWrite → bool
-
Returns true if the permission allows writing contacts
no setter
- description → String
-
A human-readable description of the permission status
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDenied → bool
-
Returns true if permission was explicitly denied by the user
no setter
- isRestricted → bool
-
Returns true if permission is restricted by the system
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The string representation of this permission status
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PermissionStatus> - A constant List of the values in this enum, in order of their declaration.