cancelMediaUploadOrDownload method

  1. @override
dynamic cancelMediaUploadOrDownload(
  1. String messageId
)
override

Implementation

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