How to show a progress bar when downloading file using Filetransfer plugin


I need to show a progress bar, displaying the percent of download, while downloading files using file transfer plugin. I have many images to be downloaded, in a single file transfer function.

How can I show a progress bar while downloading.

Any suggestion is appreciable.


Somethig like this …

      fileTransfer.onProgress((progressEvent) => {
"updater:download", {progress: Math.round(((progressEvent.loaded / * 100))});