XGalleryPermission enum

Authorisation state of the system photo library.

Mirrors the union of PHAuthorizationStatus (iOS / macOS) and Android's manifest-permission outcomes:

Inheritance
Available extensions

Values

notDetermined → const XGalleryPermission

The user has never been asked.

denied → const XGalleryPermission

The user refused access.

restricted → const XGalleryPermission

Parental controls or MDM withhold access.

unavailable → const XGalleryPermission

The app reads no media kind: on Android, its merged manifest declares neither READ_MEDIA_IMAGES nor READ_MEDIA_VIDEO.

limited → const XGalleryPermission

The user granted access to a subset of the library.

granted → const XGalleryPermission

The whole library is readable.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
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

Methods

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.
inherited

Constants

values → const List<XGalleryPermission>
A constant List of the values in this enum, in order of their declaration.