requestPermissionExtend static method

Future<PermissionState> requestPermissionExtend({
  1. PermissionRequestOption requestOption = const PermissionRequestOption(),
})

Android (AndroidManifest.xml)

  • READ_EXTERNAL_STORAGE (REQUIRED)
  • WRITE_EXTERNAL_STORAGE
  • ACCESS_MEDIA_LOCATION

iOS (Info.plist)

  • NSPhotoLibraryUsageDescription
  • NSPhotoLibraryAddUsageDescription

macOS (Debug/Release.entitlements)

  • com.apple.security.assets.movies.read-write
  • com.apple.security.assets.music.read-write

See also:

  • PermissionState which defines the permission state of the current application.

Implementation

static Future<PermissionState> requestPermissionExtend({
  PermissionRequestOption requestOption = const PermissionRequestOption(),
}) {
  return plugin.requestPermissionExtend(requestOption);
}