ICloudStorage class

The main class for the plugin. Contains all the API's needed for listing, uploading, downloading and deleting files.

Constructors

ICloudStorage()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

delete({required String containerId, required String relativePath}) Future<void>
Delete a file from iCloud container directory, whether it is been downloaded or not
download({required String containerId, required String relativePath, required String destinationFilePath, StreamHandler<double>? onProgress}) Future<void>
Initiate to download a file from iCloud
gather({required String containerId, StreamHandler<List<ICloudFile>>? onUpdate}) Future<List<ICloudFile>>
Get all the files' meta data from iCloud container
move({required String containerId, required String fromRelativePath, required String toRelativePath}) Future<void>
Move a file from one location to another in the iCloud container
rename({required String containerId, required String relativePath, required String newName}) Future<void>
Rename a file in the iCloud container
upload({required String containerId, required String filePath, String? destinationRelativePath, StreamHandler<double>? onProgress}) Future<void>
Initiate to upload a file to iCloud