startAccessingSecurityScopedResource method

Future<bool> startAccessingSecurityScopedResource(
  1. FileSystemEntity entity
)

Allows you to access the given FileSystemEntity. (which was previously stored as security aware bookmark). You should call stopAccessingSecurityScopedResource afterwards.

Implementation

Future<bool> startAccessingSecurityScopedResource(
    FileSystemEntity entity) async {
  return await _channel.invokeMethod(
      'startAccessingSecurityScopedResource', {'file': entity.absolute.path});
}