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:
Norman Breau
2023-09-15 00:23:22 -03:00
committed by GitHub
parent ac16f78b15
commit b18b9794a8
3 changed files with 63 additions and 7 deletions
+6 -1
View File
@@ -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');
}
};