MethodChannelICloudStorage class
An implementation of ICloudStoragePlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ICloudStoragePlatform
- MethodChannelICloudStorage
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copy(
{required String containerId, required String fromRelativePath, required String toRelativePath}) → Future< void> -
Copy a file from one location to another in the iCloud container
override
-
delete(
{required String containerId, required String relativePath}) → Future< void> -
Delete a file from iCloud container directory, whether it is been
downloaded or not
override
-
documentExists(
{required String containerId, required String relativePath}) → Future< bool> -
Check if a file or directory exists without downloading
override
-
downloadFile(
{required String containerId, required String cloudRelativePath, required String localPath, StreamHandler< ICloudTransferProgress> ? onProgress}) → Future<void> -
Download a file from iCloud, then copy it out to a local path.
override
-
gather(
{required String containerId, StreamHandler< GatherResult> ? onUpdate}) → Future<GatherResult> -
Gather all the files' meta data from iCloud container.
override
-
getContainerPath(
{required String containerId}) → Future< String?> -
Get the local path to the iCloud container root, if available.
override
-
getDocumentMetadata(
{required String containerId, required String relativePath}) → Future< Map< String, dynamic> ?> -
Get file or directory metadata without downloading content
override
-
icloudAvailable(
) → Future< bool> -
Check if iCloud is available and user is logged in
override
-
move(
{required String containerId, required String fromRelativePath, required String toRelativePath}) → Future< void> -
Move a file from one location to another in the iCloud container
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readInPlace(
{required String containerId, required String relativePath, List< Duration> ? idleTimeouts, List<Duration> ? retryBackoff}) → Future<String?> -
Read a file in place from the iCloud container using coordinated access.
override
-
readInPlaceBytes(
{required String containerId, required String relativePath, List< Duration> ? idleTimeouts, List<Duration> ? retryBackoff}) → Future<Uint8List?> -
Read a file in place as bytes from the iCloud container using coordinated
access.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadFile(
{required String containerId, required String localPath, required String cloudRelativePath, StreamHandler< ICloudTransferProgress> ? onProgress}) → Future<void> -
Copy a local file into the iCloud container (copy-in).
override
-
writeInPlace(
{required String containerId, required String relativePath, required String contents}) → Future< void> -
Write a file in place inside the iCloud container using coordinated
access.
override
-
writeInPlaceBytes(
{required String containerId, required String relativePath, required Uint8List contents}) → Future< void> -
Write a file in place as bytes inside the iCloud container using
coordinated access.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited