You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/29 19:46:31 UTC

[GitHub] [cordova-plugin-inappbrowser] shaikh-amaan-fm commented on a change in pull request #743: Added download event

shaikh-amaan-fm commented on a change in pull request #743:
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/743#discussion_r447211724



##########
File path: README.md
##########
@@ -304,6 +305,29 @@ function messageCallBack(params){
 }
 
 ```
+#### Download event Example
+
+Whenever the InAppBrowser receives or locates to a url which leads in downloading a file, the callback assgined to the "download" event is called. The parameter passed to this callback is an object with the the follwing properties
+
+- **type** _it contains the String value "download" always_
+- **url** _The url that leaded to the downloading of file. Basically, the download link of file_

Review comment:
       The url will be an http url to the file.
   The downloading of the file (if required) have to be explicitly done by using the http url received in the callback to the event. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org