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.
: 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.
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.
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.
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"]
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.
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.
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>