MobileCRM.Platform.scanBarCodeRequiredLength - Resconet/JSBridge GitHub Wiki

Activates the bar-code scanning.

If the current platform does not support the bar-code scanning, the failed handler is called with error "Unsupported".

Arguments

Argument Type Description
requiredLength Number Set required length of scanned barcode.
success function(result) A callback function for successful asynchronous result. The result will carry an array of strings with scanned codes.
failed function(error) A callback function for command failure. The error argument will carry the error message.
scope A scope for calling the callbacks; set "null" to call the callbacks in global scope.
⚠️ **GitHub.com Fallback** ⚠️