Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| type | String | No | Scan type: qr, bar |
| success | Function | No | Callback with scan result |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback
| Property | Type | Description |
|---|---|---|
| code | String | Scanned content |