ICloudProvider class

Inheritance

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

createDirectory(String path) → Future<void>
Creates a new directory at the specified path.
override
deleteFile(String path) → Future<void>
Deletes the file or directory at the specified path.
override
downloadFile({required String remotePath, required String localPath}) → Future<String>
Downloads a file from a remotePath to a localPath on the device.
override
downloadFileByShareToken({required String shareToken, required String localPath}) → Future<String>
iCloud access is limited to the container and can't share files directly.
override
iCloud access is limited to the container and can't share files directly.
override
getFileMetadata(String path) → Future<CloudFile>
Retrieves metadata for the file or directory at the specified path.
override
iCloud access is limited to the container and can't share files directly.
override
listFiles({required String path, bool recursive = false}) → Future<List<CloudFile>>
Lists all files and directories at the specified path.
override
loggedInUserDisplayName() → Future<String?>
Retrieves the display name of the currently logged-in user.
override
logout() → Future<bool>
logout not necessary since only current appleId user can login, so just clear isntance
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tokenExpired() → Future<bool>
Checks if the current user's authentication token is expired.
override
toString() → String
A string representation of this object.
inherited
uploadFile({required String localPath, required String remotePath, Map<String, dynamic>? metadata}) → Future<String>
Uploads a file from a localPath to a remotePath in the cloud.
override
uploadFileByShareToken({required String localPath, required String shareToken, Map<String, dynamic>? metadata}) → Future<String>
iCloud access is limited to the container and can't share files directly.
override

Operators

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

Static Methods

connect({required String containerId}) → Future<ICloudProvider?>
Establishes a connection to iCloud storage.