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 callbackRMP_RunMyApp~scanBarcodeCallback Scan Barcode callback function ExampleRMP_RunMyApp.scanBarcode(function(barcode) { alert(barcode) })
- 
    <static> setSwipeToRefreshEnabled(value)
- 
    
    
    When a Web interface is opened from within RunMyApp, this method allows to refresh the content of the Web interface/page with swiping to the top of it (swipe-to-refresh). By default, swipe-to-refresh is enabled in any Web interface. If a designer uses this method with "false" in a Web interface, swipe-to-refresh is disabled only in this particular Web interface. This means that if a user navigates/opens another Web interface with RunMyApp, the swipe-to-refresh functionality is active again unless called from this other Web interface, too.Parameters:Name Type Description valueBoolean Value describing whether swipe-to-refresh should be enabled. This parameter is required. ExampleRMP_RunMyApp.setSwipeToRefreshEnabled(false);
Type Definitions
- 
    scanBarcodeCallback(barcode)
- 
    
    
    
    
    
    
    
        Parameters:Name Type Description barcodeString The scanned barcode as a string, or null if no barcode is scanned. 
