setMediaAutoDownload static method

dynamic setMediaAutoDownload({
  1. required bool enable,
})

Sets whether media files should be automatically downloaded.

This static method sets whether media files (e.g., images, videos) received through the Mirrorfly SDK should be automatically downloaded to the device.

enable specifies whether media auto-download should be enabled or disabled. If set to true, media auto-download will be enabled. If set to false, it will be disabled.

Returns a Future<void> that completes once the operation is complete.

Implementation

static setMediaAutoDownload({required bool enable}) async {
  return FlyChatFlutterPlatform.instance.setMediaAutoDownload(enable);
}