IosFileTransferHandler class
Implementation of FileTransferHandler for iOS platform.
This handler uses native iOS URLSession background transfer capabilities to handle file downloads and uploads even when the app is in the background. It supports progress tracking and shows native notifications for transfer status.
- Implemented types
Constructors
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> > -
Gets a list of transfers currently in the queue.
override
-
getQueueStatus(
) → Future< Map< String, dynamic> > -
Gets the current status of the transfer queue.
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