downloadFile abstract method

Future<VKWebAppBoolResult> downloadFile({
  1. required String url,
  2. required String filename,
})

Raising the VKWebAppDownloadFile event allows you to download a file to the device.

Platforms: iOS, Android

url - link to the file to download. filename - file name.

Implementation

Future<VKWebAppBoolResult> downloadFile({
  required String url,
  required String filename,
});