feat(android): Download event (#1019)
* feat(android): Added download event * android typos, whitespaces and whiteline corrected * Update README.md * fix: removed added whitespace trail --------- Co-authored-by: Shaikh Amaan FM <thisisamaan.s@gmail.com> Co-authored-by: Shaikh Amaan FM <53618794+shaikh-amaan-fm@users.noreply.github.com>
This commit is contained in:
+6
-1
@@ -33,7 +33,8 @@
|
||||
loaderror: channel.create('loaderror'),
|
||||
exit: channel.create('exit'),
|
||||
customscheme: channel.create('customscheme'),
|
||||
message: channel.create('message')
|
||||
message: channel.create('message'),
|
||||
download: channel.create('download')
|
||||
};
|
||||
}
|
||||
|
||||
@@ -89,6 +90,10 @@
|
||||
} else {
|
||||
throw new Error('insertCSS requires exactly one of code or file to be specified');
|
||||
}
|
||||
},
|
||||
|
||||
addDownloadListener: function (success, error) {
|
||||
exec(success, error, 'InAppBrowser', 'downloadListener');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user