saveMediaSettings method

  1. @override
dynamic saveMediaSettings(
  1. bool photos,
  2. bool videos,
  3. bool audio,
  4. bool documents,
  5. int networkType,
)
override

This method is used to save the media settings.

Implementation

@override
saveMediaSettings(bool photos, bool videos, bool audio, bool documents,
    int networkType) async {
  try {
    await mirrorFlyMethodChannel.invokeMethod('saveMediaSettings', {
      'Photos': photos,
      'Videos': videos,
      'Audio': audio,
      'Documents': documents,
      'NetworkType': networkType
    });
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}