setMediaAutoDownload method

  1. @override
dynamic setMediaAutoDownload(
  1. bool enable
)
override

This method is used to set the media auto download settings.

Implementation

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