Parameters
No input parameters required.Success Callback
Supported Code Types
CODE_128 · CODE_39 · CODE_93 · CODABAR · DATA_MATRIX · EAN_13 · EAN_8 · ITF · QR_CODE · UPC_A · UPC_E · PDF417 · AZTEC
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Scan a loyalty card QR code or barcode.
| Property | Type | Description |
|---|---|---|
| success | Boolean | true if the scan succeeded |
| resultCode | String | 0 success · 1002 internal error · 1003 user cancelled |
| resultMessage | String | Human-readable status message |
| codeValue | String | Decoded content from the scanned code |
| codeType | String | Code format (see supported types below) |
| clickEnterManuallyButton | Boolean | Whether the user chose manual entry |
CODE_128 · CODE_39 · CODE_93 · CODABAR · DATA_MATRIX · EAN_13 · EAN_8 · ITF · QR_CODE · UPC_A · UPC_E · PDF417 · AZTEC
my.call('scanLoyaltyCard', {
success: (res) => {
my.alert({ content: 'success: ' + JSON.stringify(res) });
},
fail: (error) => {
my.alert({ content: 'error: ' + JSON.stringify(error) });
}
});