Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

RhoMobile API Summary

Below is a list of the new common api’s for RhoMobile Suite 5.0.25. Please consult the 2.x migration guide if you are moving a 2.x application to 5.0.25. If you are starting a new project, it is advised to the use 5.x API’s going forward, however the 2.x APIs are still currently supported.

5.0.25 API’s

: Indicates this API/Platform is supported and does not require a license.

: Indicates this API/Platform requires a paid subscription for production use.

: Indicates this API is only available on Symbol devices.

LANGUAGES PLATFORMS
Class
Addressbar *
Alarm *
Application
AudioCapture
Backlight *
Barcode
Battery
BluetoothManager *
BluetoothSession *
Camera *
CardReader
Comm *
Database
Geolocation
Gesture *
Hourglass *
Intent
KeyCapture
Keylight *
KeyState
Log
Mapview *
Mediaplayer
Memory *
NativeMenubar
NativeTabbar
NativeToolbar
Navbar
NdefMessage *
NdefRecord *
Network
NFC - Adapter (BETA)
NFC - Message (BETA)
NFC - Record (BETA)
NFC - Tag (BETA)
NFCManager *
NFCTag *
NFCTagTechnology_IsoDep *
NFCTagTechnology_MifareClassic *
NFCTagTechnology_MifareUltralight *
NFCTagTechnology_Ndef *
NFCTagTechnology_NdefFormatable *
NFCTagTechnology_NfcA *
NFCTagTechnology_NfcB *
NFCTagTechnology_NfcF *
NFCTagTechnology_NfcV *
NFCTagTechnology *
Notification
ORM & ORMModel
Printer
Printer Zebra
Push
Reboot *
Registry *
RFID *
RhoConfig *
RhoConnectClient
RhoContact *
RhoController *
RhoError *
RhoEvent *
RhoFile
RhomSource *
RhoProfiler *
RhoUtils *
ScreenOrientation
Sensor
SignalIndicators
Signature
SignatureCapture (inline) *
Stylus *
System
SystemTime *
Timer *
VideoCapture *
Volume *
Wake *
Webview

Some API classes that may have been available in RhoMobile Suite 2.2 and have not yet have been incorporated in the new Common API class set for RhoMobile Suite 5.0.25, here these APIs are marked with an asterisk (*). However these APIs are still available in the 2.2 format but only in Ruby. The following API classes will soon be incorporated in future versions of RhoMobile Suite 5.x in order to supply both a Common API format in both JavaScript and Ruby.

When using 2.2 API’s in RhoMobile 5.0.25, the 2.2 API compatibility matrix still applies.

RhoElements 2.2 APIs

The 2.2 RhoElement APIS are only supported on Zebra Webkit. This webkit is still available on Windows Mobile/CE and Android platforms, however on Android the default webkit that is used is the stock Android Webkit.

Rhodes 2.2 APIs

2.2 Rhodes APIs that were not replaced by an equivalent RhoMobile 5.0.25 API (ex: Camera) are supported on all platforms that were supported previously. Ruby API’s will behave exactly as they did before. Note that some of the Rhodes 2.2 API’s provided JavaScript support but used a different version of the RhoMobile JavaScript API library: rho_javascript_api.js

To generate this file you must enable JavaScript by putting rho-javascript into extensions in your build.yml.

extensions: ["rho-javascript"]

Licensing

The items listed above that are indicated with a require a either a silver or gold level license. Please review the Licensing Guide for more details regarding licensing.

JavaScript APIs

To use the JavaScript APIs in RE 2.2, add the public/js/rho_javascript_api.js file – created at build time as part of the application package – to the .html, .erb, or .js file calling the JavaScript method. This file can coexist with RhoMobile 5.0.25 JavaScript API file: rhoapi-modules.js however it has been altered from the version that was built using 2.2. You must re-generate the rho_javascript_api.js file to properly coexist.

JavaScript ORM

If you are going to be using the JS ORM API, you’ll also need to include this line in any files that will be using it:

<script type="text/javascript" charset="utf-8" src="/public/api/rhoapi-modules-ORM.js"></script>
Back to Top