configureQueue method
Configure the transfer queue behavior
isEnabled - When true, transfers will be queued and processed according to maxConcurrent.
When false, transfers will start immediately without queueing.
maxConcurrent - The maximum number of concurrent transfers allowed when queue is enabled.
Default is 1, which processes transfers serially.
cleanupDelay - The delay in milliseconds before removing completed tasks from the queue.
Default is 0, which means tasks are removed immediately when completed.
Note: On iOS, this value will be automatically converted from milliseconds to seconds internally.
Implementation
@override
Future<void> configureQueue({
required bool isEnabled,
int maxConcurrent = 1,
double cleanupDelay = 0,
}) async {
_isQueueEnabled = isEnabled;
_maxConcurrent = maxConcurrent;
_processQueue();
}