RMP_RunMyApp

Specific embedded javascript API for RunMyApp

Methods

<static> isInOfflineMode() → {Boolean}

Returns:
true if offline mode is enabled, false otherwise
Type
Boolean

<static> scanBarcode(callback)

Start the integrated barcode scanner in RunMyApp.
Parameters:
Name Type Description
callback RMP_RunMyApp~scanBarcodeCallback Scan Barcode callback function
Example
RMP_RunMyApp.scanBarcode(function(barcode) {
     alert(barcode)
  })

Type Definitions

scanBarcodeCallback(barcode)

Parameters:
Name Type Description
barcode String The scanned barcode as a string, or null if no barcode is scanned.