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:
@@ -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]);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user