XGalleryPermission enum
Authorisation state of the system photo library.
Mirrors the union of PHAuthorizationStatus (iOS / macOS) and
Android's manifest-permission outcomes:
- notDetermined — never asked. Prompt the user with XGallery.requestPermission.
- denied — user said no. XGallery.openSettings is the only way back.
- restricted — parental controls / MDM. Same UI as denied.
- unavailable — the app reads no media kind, so there is nothing to ask for.
- limited — iOS 14+. User picked a subset; the grid still populates from that subset. Call XGallery.presentLimitedLibraryPicker to let them adjust.
- granted — full access.
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.
-
The app reads no media kind: on Android, its merged manifest declares neither
READ_MEDIA_IMAGESnorREAD_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.