SecureBookmarks class
Create and resolve security aware bookmarks to access files in sandboxed MacOS apps.
Constructors
- SecureBookmarks()
-
Right now always returns a global (stateless) singleton instance.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bookmark(
FileSystemEntity entity) → Future< String> -
Create a security aware bookmark for the given
entity
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveBookmark(
String bookmark, {bool isDirectory = false}) → Future< FileSystemEntity> -
Converts the given bookmark, created previously with
bookmark
back into either a File or a Directory depending on the optional value ofisDirectory
, which defaults to false. Before accessing it, it is still required to call startAccessingSecurityScopedResource -
startAccessingSecurityScopedResource(
FileSystemEntity entity) → Future< bool> - Allows you to access the given FileSystemEntity. (which was previously stored as security aware bookmark). You should call stopAccessingSecurityScopedResource afterwards.
-
stopAccessingSecurityScopedResource(
FileSystemEntity entity) → Future< bool> - Frees resources associated with the security scoped resource. see apple docs for details.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited