getMediaSetting method

  1. @override
Future<bool?> getMediaSetting(
  1. int networkType,
  2. String type
)
override

This method is used to get the media settings.

Implementation

@override
Future<bool?> getMediaSetting(int networkType, String type) async {
  bool? val = false;
  try {
    val = await mirrorFlyMethodChannel.invokeMethod<bool?>(
        'getMediaSetting', {"NetworkType": networkType, "type": type});
    return val;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}