ionic-mediascanner

1.2.3 • Public • Published

MediaScannerPlugin

Cordova/Phonegap plugin to call MediaScannerPlugin

MediaScanner should be called to add a downloaded image to Android Gallery.

Installation

For ionic

npm i ionic-mediascanner

Usage:

       this.fileTransfer.download(imageLocation, DownloadFileLocation + FileName).then((entry) => {
        cordova.plugins.MediaScannerPlugin.scanFile(DownloadFileLocation + FileName); //This is the code line that you need.You need to use this line where your download thing  happens

"# ionic-mediascanner"

Package Sidebar

Install

npm i ionic-mediascanner

Weekly Downloads

0

Version

1.2.3

License

ISC

Unpacked Size

7.92 kB

Total Files

8

Last publish

Collaborators

  • ravi9376