PermissionType enum

Permission types supported by the plugin.

Inheritance
Available extensions

Values

camera → const PermissionType

Camera permission

const PermissionType('camera')
microphone → const PermissionType

Microphone/audio recording permission

const PermissionType('microphone')
photos → const PermissionType

Photo library/gallery permission

  • iOS: Photos permission
  • Android 14+: READ_MEDIA_IMAGES, READ_MEDIA_VIDEO (full access) READ_MEDIA_VISUAL_USER_SELECTED (limited access)
  • Android 13: READ_MEDIA_IMAGES, READ_MEDIA_VIDEO
  • Android <13: READ_EXTERNAL_STORAGE
const PermissionType('photos')
storage → const PermissionType

Storage permission (file/external storage)

  • iOS: Not applicable
  • Android 13+: READ_EXTERNAL_STORAGE
  • Android <13: READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE
const PermissionType('storage')
notification → const PermissionType

Notifications permission

const PermissionType('notification')
systemAlertWindow → const PermissionType

System alert window permission (overlay/floating window)

  • iOS: Not applicable (always granted)
  • Android: SYSTEM_ALERT_WINDOW permission Required for displaying floating windows over other apps
const PermissionType('systemAlertWindow')
displayOverOtherApps → const PermissionType

Display over other apps permission (same as systemAlertWindow)

  • iOS: Not applicable (always granted)
  • Android: SYSTEM_ALERT_WINDOW permission Required for bringing app to foreground from background
const PermissionType('displayOverOtherApps')

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier String
Permission identifier
final
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
platformValue String
Get platform-specific permission string Note: For Android, actual permissions are determined by OS version
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<PermissionType>
A constant List of the values in this enum, in order of their declaration.