updateMediaDownloadStatus method

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

Implementation

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