API Reference
All API functions are triggered by calling the Javascript Window prompt() Method with one of the following command strings.
A demo page is available at http://webwrap.smpqc.ca/wwdemo
cmd= | Details | Version |
authenticate.touchId() | Description: authentication of the device owner with TouchId Returns: "OK: Authentication succeeded." "Error: Authentication failed." "Error: Touch ID not available." |
1.2 |
navigator.vibrate() | Description: vibrate the device Returns: "OK: played Vibration" |
1.0 |
playSystemSound(code) | Description: play system sound - code: hex string of sound to be played. Range "00000000"-"FFFFFFFF". No padding required. "1E" = "0000001E" and is a ring tone. Returns: "OK: played ..." |
1.0 |
scanBarcode() | Description: launch the barcode scanner. Returns: the scanned code Note: barcode scanner "Cancel" & "Torch" options introduced in version 1.1 |
1.0 |
statusBar.hide() | Description: hides the status bar Returns: "OK:cmd=statusBar.hide()" |
1.0 |
statusBar.isHidden() | Description: query the status bar hidden state Returns: "true" if status bar is hidden, "false" otherwise |
1.0 |
statusBar.show() | Description: shows the status bar Returns: "OK:cmd=statusBar.show()" |
1.0 |
torch.off() | Description: turns the torch light off Returns: "OK" / "Error:..." |
1.1 |
torch.on() | Description: turns the torch light on Returns: "OK" / "Error:..." |
1.1 |
torch.status | Description: query the status of the torch light Returns: "ON" / "OFF" / "Error:..." |
1.1 |