getMediaAutoDownload method

  1. @override
Future<bool?> getMediaAutoDownload()
override

Implementation

@override
Future<bool?> getMediaAutoDownload() async {
  bool? val = false;
  try {
    val = await mirrorFlyMethodChannel
        .invokeMethod<bool?>('getMediaAutoDownload');
    debugPrint("MediaAutoDownloadEnabled--> $val");
    return val;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}