AndroidFileTransferHandler class

Implementation of FileTransferHandler for Android platform.

This handler uses Android WorkManager to handle background file transfers, providing reliable background processing with automatic retry capability and progress tracking through notifications.

Implemented types

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

cancelTask(String taskId) Future<bool>
Cancels an ongoing transfer task.
override
configureQueue({required bool isEnabled, int maxConcurrent = 1, double cleanupDelay = 0}) Future<void>
Configure the transfer queue behavior
override
deleteTask(String taskId) Future<bool>
Deletes a task from the queue and cleans up associated resources. Returns true if the task was successfully deleted, false if the task wasn't found.
override
getDownloadProgress(String taskId) Stream<double>
Gets a stream of download progress updates for a specific task.
override
getQueuedTransfers() Future<List<Map<String, dynamic>>>
Get list of queued transfers with their details
override
getQueueStatus() Future<Map<String, dynamic>>
Get details about the current queue status
override
getUploadProgress(String taskId) Stream<double>
Gets a stream of upload progress updates for a specific task.
override
isDownloadComplete(String taskId) Future<bool>
Checks if a download task has completed.
override
isUploadComplete(String taskId) Future<bool>
Checks if an upload task has completed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startDownload({required String fileUrl, required String savePath, Map<String, String>? headers}) Future<String>
Starts a file download operation in the background.
override
startUpload({required String filePath, required String uploadUrl, Map<String, String>? headers, Map<String, String>? fields}) Future<String>
Starts a file upload operation in the background.
override
toString() String
A string representation of this object.
inherited

Operators

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