Files class

Defines the Files API.

HUAWEI Drive Kit allows your app to provide file managing functions for users, including viewing, updating, and uploading.

Constructors

Files()

Properties

hashCode int
The hash code for this object.
no setterinherited
onProgressChanged Stream<DriveProgress>
Stream that emits the progress of download and upload processes. The errors of this stream can be listened from the onError callback.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copy(FilesRequest request) Future<DriveFile>
Creates a copy of a file.
create(FilesRequest request) Future<DriveFile>
Creates a folder or file.
delete(FilesRequest request) Future<bool>
Permanently deletes a file or folder.
emptyRecycle(FilesRequest request) Future<bool>
Clears the recycle bin.
getContent(FilesRequest request) Future<ExecuteResponse>
Sends a media request to the server and returns media content.
getContentAndDownloadTo(FilesRequest request, String path) Future<bool>
Sends a media request to the server and writes the input stream of returned media content into the specified destination.
getContentAsInputStream(FilesRequest request) Future<Int8List>
Sends a media request to the server and returns a media content input as input stream.
getFile(FilesRequest request) Future<DriveFile>
Obtains file metadata.
list(FilesRequest request) Future<DriveFileList>
Obtains file metadata.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(FilesRequest request) Future<DriveChannel>
Subscribes to changes of files and folders.
toString() String
A string representation of this object.
inherited
update(FilesRequest request) Future<DriveFile>
Updates file content or metadata.

Operators

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