hasLimitedPermission property

Future<bool> hasLimitedPermission

Returns true only for iOS 14+ if the user chose to grant only limited access to the photos in their library.

This method can be called before initialize to check if limited has been granted. When true other methods in the library only return specific photos that have been explicitly allowed.

Implementation

Future<bool> get hasLimitedPermission async {
  if (kIsWeb) {
    return false;
  }
  if (Platform.isIOS) {
    return await LocalImageProviderPlatform.instance.hasLimitedPermission();
  }
  return false;
}