XdgDocumentsPortal class

Portal to access documents.

Constructors

XdgDocumentsPortal(DBusRemoteObject _object)

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

add(Iterable<File> files, {bool reuseExisting = false, bool persistent = false, bool asNeededByApp = false, bool exportDirectory = false, String appId = '', Set<XdgDocumentPermission> permissions = const {}}) Future<List<String>>
Adds files to the document store. Returns the document IDs for these document.
delete(String docId) Future<void>
Removes an entry from the document store. The file itself is not deleted.
getMountPoint() Future<Directory>
Returns the path at which the document store fuse filesystem is mounted. This will typically be /run/user/$UID/doc/.
getVersion() Future<int>
Get the version of this portal.
grantPermissions(String docId, String appId, Set<XdgDocumentPermission> permissions) Future<void>
Grants access permissions for a file with docId to the application with appId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revokePermissions(String docId, String appId, Set<XdgDocumentPermission> permissions) Future<void>
Revokes access permissions for a file with docId from the application with appId.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited