Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 727 Bytes

File metadata and controls

24 lines (15 loc) · 727 Bytes

pub package

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