getMediaSetting static method

Future<bool?> getMediaSetting({
  1. required int networkType,
  2. required String type,
})

This static method queries the Mirrorfly chat platform to retrieve media settings based on the specified networkType and type.

  • networkType: An integer representing the type of network. This could be values such as 0 for cellular data, 1 for Wi-Fi, etc.

  • type: A string specifying the type of media setting to retrieve. Examples include 'Photos', 'Videos', 'Audio', 'Documents'.

Returns a Future that completes with a boolean value indicating whether the media setting retrieval was successful.

Implementation

static Future<bool?> getMediaSetting(
    {required int networkType, required String type}) async {
  return FlyChatFlutterPlatform.instance.getMediaSetting(networkType, type);
}