downloadMedia method

  1. @override
dynamic downloadMedia(
  1. String mid
)
override

This method is used to download the media using the message ID.

Implementation

@override
downloadMedia(String mid) async {
  //mediaDownload
  try {
    await mirrorFlyMethodChannel
        .invokeMethod('downloadMedia', {"mediaMessage_id": mid});
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}