updateMediaUploadStatus method

  1. @override
dynamic updateMediaUploadStatus(
  1. String mediaMessageId,
  2. int progress,
  3. int uploadStatus,
  4. num dataTransferred,
)
override

Implementation

@override
updateMediaUploadStatus(String mediaMessageId, int progress, int uploadStatus,
    num dataTransferred) async {
  try {
    await mirrorFlyMethodChannel.invokeMethod('updateMediaUploadStatus', {
      "mediaMessageId": mediaMessageId,
      "progress": progress,
      "downloadStatus": uploadStatus,
      "dataTransferred": dataTransferred
    });
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}