getQueueStatus method

  1. @override
Future<Map<String, dynamic>> getQueueStatus()
override

Gets the current status of the transfer queue.

Returns a map containing the queue status information.

Throws an Exception if the status retrieval fails.

Implementation

@override
Future<Map<String, dynamic>> getQueueStatus() async {
  try {
    final status = await _channel.invokeMethod('getQueueStatus');
    return Map<String, dynamic>.from(status);
  } on PlatformException catch (e) {
    throw Exception("Failed to get queue status: ${e.message}");
  }
}