reliable_upload_queue library
Backward-compatibility redirection for reliable_upload_queue.dart.
Prefer importing package:smart_upload_manager/smart_upload_manager.dart.
Classes
- ConnectivityMonitor
- Abstract contract for monitoring device network connectivity.
- DefaultConnectivityMonitor
-
Default implementation using
Connectivityfromconnectivity_pluswith optional DNS / socket reachability check. - DioUploadAdapter
-
Standard HTTP upload adapter using
Dio. - FileQueueStorage
- File-based implementation of QueueStorage that stores tasks in a JSON file.
- InMemoryQueueStorage
- In-memory implementation of QueueStorage, useful for unit tests or ephemeral queues.
- MockConnectivityMonitor
- Controllable mock connectivity monitor for testing and simulation.
- NotificationConfig
- Configuration options for upload progress notifications.
- QueueStorage
- Abstract storage interface for persisting upload tasks across app restarts.
- QueueSummary
- Aggregated metrics and status for the entire upload queue.
- ResumableUploadAdapter
- Resumable chunked upload adapter.
- RetryPolicy
- Configuration and logic for retrying failed upload tasks.
- S3MultipartUploadAdapter
- Adapter supporting AWS S3 and S3-compatible (MinIO, Wasabi, Cloudflare R2) multipart uploads.
- SimulatedUploadAdapter
- Simulation upload adapter that mimics realistic network transfers, chunking, speed variations, and optional failure injection.
- SmartUploadManager
-
The primary public interface and singleton manager for
smart_upload_manager. - TusUploadAdapter
- Adapter implementing the open Tus.io resumable upload protocol (v1.0.0).
- UploadAdapter
- Abstract contract for implementing upload transport mechanisms.
- UploadManager
- The core management engine for resilient, persistent, offline-tolerant file uploads.
- UploadNotificationManager
- Manages background and foreground notifications displaying real-time upload progress.
- UploadProgressBar
- A plug-and-play progress bar widget that automatically listens to an UploadTask's progress.
- UploadQueue
- Priority-based in-memory task queue manager.
- UploadResponse
- Standardized response returned by any UploadAdapter.
- UploadTask
- Represents a single file upload task in the queue.
- UploadTaskTile
- A drop-in ListTile widget that renders an upload task with real-time progress and controls.
Enums
- TaskPriority
- Priority levels for upload tasks. Tasks with higher priority will be dequeued and uploaded before lower priority tasks.
- UploadProtocol
- The transport protocol or adapter used for uploading files.
- UploadStatus
- Represents the possible lifecycle states of an upload task.
Extensions
- SmartUploadFileX on File
- Convenience extension on File for ultra-simple uploads.
- TaskPriorityX on TaskPriority
- Extension for TaskPriority comparison and display.
- UploadProtocolX on UploadProtocol
- Extension methods for UploadProtocol.
- UploadStatusX on UploadStatus
- Extension methods for UploadStatus to simplify status checks.
Typedefs
-
HeaderProvider
= Future<
Map< Function(UploadTask task)String, String> > - Callback to asynchronously provide fresh headers or authentication tokens.
- ReliableUploadQueue = SmartUploadManager
- Backwards compatibility alias for SmartUploadManager.
- TaskErrorCallback = void Function(UploadTask task, dynamic error)
- Callback invoked when a specific task fails.
- TaskProgressCallback = void Function(double progress, double speed, Duration? eta)
- Callback invoked on progress updates for a specific task.
- TaskStatusCallback = void Function(UploadTask task)
- Callback invoked when a specific task completes successfully.
- UploadProgressCallback = void Function(int sentBytes, int totalBytes)
- Progress callback receiving current sent bytes and total file bytes.