setIgnorePermissionCheck static method

Future<void> setIgnorePermissionCheck(
  1. bool ignore
)

Whether to ignore all runtime permissions check.

Common scenarios on Android

Service and other background process are common use cases ignore checks. Because permissions checks required a valid Activity. Be aware that asset deletions above Android 10 required an Activity.

Implementation

static Future<void> setIgnorePermissionCheck(bool ignore) {
  return plugin.ignorePermissionCheck(ignore);
}