accessing_security_scoped_resource 2.0.0 accessing_security_scoped_resource: ^2.0.0 copied to clipboard
Call `startAccessingSecurityScopedResource` and `stopAccessingSecurityScopedResource` in Flutter.
accessing_security_scoped_resource #
Call iOS / macOS startAccessingSecurityScopedResource
and stopAccessingSecurityScopedResource
in Flutter.
Usage #
final _plugin = AccessingSecurityScopedResource();
final folderPath = /* Get a folder path */;
// Get access.
final hasAccess = await _plugin.startAccessingSecurityScopedResourceWithFilePath(folderPath);
// Release access.
_plugin.stopAccessingSecurityScopedResourceWithFilePath(folderPath);
URL-based APIs:
startAccessingSecurityScopedResourceWithURL
stopAccessingSecurityScopedResourceWithURL