Added text_title and text_instructions parameters for customising the scanner view's title and instructions texts (Android only in this commit)

This commit is contained in:
Woon Tien Jing
2014-12-06 15:40:17 +08:00
parent 9fb4a6a23c
commit 8d0261b650
4 changed files with 38 additions and 5 deletions

View File

@@ -8,6 +8,11 @@ ZBar.prototype = {
scan: function (params, success, failure)
{
argscheck.checkArgs('*fF', 'CsZBar.scan', arguments);
params = params || {};
if(params.text_title === undefined) params.text_title = "Scan QR Code";
if(params.text_instructions === undefined) params.text_instructions = "Please point your camera at the QR code.";
exec(success, failure, 'CsZBar', 'scan', [params]);
},