NFC Adapter provides access to the NFC device to perform device related operations.
+
+
All properties and methods should be used after activate. Besides supported and isActive.
+## Enabling the API
+In order to use this API you must include the following extension in your `build.yml`
+ :::ruby
+ extensions: ["nfc"]
+
+NOTE: If you are building a Windows Mobile or Windows CE app with this API, you must set your app_type as "rhoelements" in your build.yml as shown [here](../guide/build_config#other-build-time-settings).
+
Bluetooth device pass key. Max of 6 characters, empty string is no Passkey (Default is No Passkey). The property is enabled after NFC engine activation.
+
Property Access:
Instance: This property can be accessed via an instance object of this class:
Instance: This property can be accessed via an instance object of this class:
myObject.version
\ No newline at end of file
diff --git a/docs/en/5.5/api/Adapter.xml b/docs/en/5.5/api/Adapter.xml
new file mode 100644
index 00000000..0b2a1db6
--- /dev/null
+++ b/docs/en/5.5/api/Adapter.xml
@@ -0,0 +1,273 @@
+
+
+
+
+ NFC Adapter
+ NFC Adapter provides access to the NFC device to perform device related operations.
+ All properties and methods should be used after activate. Besides supported and isActive.
+ ## Enabling the API
+ In order to use this API you must include the following extension in your `build.yml`
+ :::ruby
+ extensions: ["nfc"]
+
+ NOTE: If you are building a Windows Mobile or Windows CE app with this API, you must set your app_type as "rhoelements" in your build.yml as shown [here](../guide/build_config#other-build-time-settings).
+
+
+
+## Enabling the API
+There are two methods of enabling the Adapter API:
+
+* Include all ebapi modules or
+* Include only the API modules you need
+
+For either of these methods, you'll need to include files from the `/Enterprise Browser/JavaScript Files/Enterprise Browser` directory on the computer that you installed the Enterprise Browser.
+
+### Include all JS API modules
+To include all JS APIs, you must copy the ebapi-modules.js file to a location accessible by your app's files and include the JavaScript file in your app. For instance, to include the modules file in your index.html, with the file in the same directory as your index.html, you would add the following line to the <head> section of your index.html:
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi-modules.js"></script>
+
+> Note: that the pathing for this file is relative to the current page.
+
+This will define the EB class within the page. Any page you need to use the modules will need to have the .js file included in this fashion.
+
+### Include only the modules you need
+To include single APIs, you must first include the `ebapi.js` in your HTML as well as the API file you want to use. For instance, to use the Adapter API, I would add the following code to my HTML file(s), assuming the API files have been copied to the same directory as the HTML.
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi.js"></script>
+ <script type="text/javascript" charset="utf-8" src="eb.adapter.js"></script>
+
+The ebapi.js file is necessary for all single API inclusions.
+
+
+
+
+
+
+
+ List of properties supported by class.
+
+ Return true if NFC supported on this device.
+ WM
+
+
+ Gets a value indicating whether or not the NFC device is currently active.
+ WM
+
+
+ Gets the version of the NFC stack.
+ WM
+
+
+ Polling timeout in seconds of the NFC device. 0 - timeout disabled, default: 90. The property is enabled after NFC engine activation.
+ WM
+
+
+ Bluetooth device pass key. Max of 6 characters, empty string is no Passkey (Default is No Passkey). The property is enabled after NFC engine activation.
+ WM
+
+
+
+
+
+ Activates the NFC device so that all the NFC operations will be executed.
+ WM
+
+
+ Resets the NFC device to default configuration. Pollingtime will set to 90, passkey to empty string.
+ WM
+
+
+ Stops the NFC device.
+ WM
+
+
+ Register callback for Tag detection.
+
+
+ Array with tag types - only those tags will be detected. If empty array - all types. See below tagsSupported parameter in getDeviceInfo method.
+
+
+
+
+
+
+
+
+ Tag Id.
+
+
+
+ WM
+
+
+ Register callback for Message receive.
+
+
+
+
+ Message Id.
+
+
+
+ WM
+
+
+ Register callback for config change. If you change properties like pollingTimeout, passkey then callback will fire.
+
+
+
+
+ Bluetooth device pass key.
+
+
+ Polling timeout in seconds of the NFC device.
+
+
+
+ WM
+
+
+ Connects the Bluetooth device to obtain device properties.
+
+
+
+
+ Device name.
+
+
+ Device MAC address.
+
+
+
+ WM
+
+
+ Disconnects the Bluetooth device.
+ WM
+
+
+ Gets the NFC device capabilities.
+
+ Return hash with capabilities.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Array with tag types - only those tags will be detected.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Array with tag types - only those tags will be detected. See above tagsSupported parameter.
+
+
+
+ Array with tag types - only those tags will be detected. See see above tagsSupported parameter.
+
+
+
+ This array has only one element.
+
+
+
+
+ WM
+
+
+
+
+
+
+ 1.0.0
+
+
+
+
\ No newline at end of file
diff --git a/docs/en/5.5/api/Application.md b/docs/en/5.5/api/Application.md
new file mode 100644
index 00000000..eaa02af3
--- /dev/null
+++ b/docs/en/5.5/api/Application.md
@@ -0,0 +1,147 @@
+#Application
+
Path to the ORM database file by partition name. Please note that this function does not create a database file. This function only generates the file path based on the application path and partition name.
+
Parameters
partitionName : STRING
Partition name.
+
Synchronous Return:
STRING :
Full path to the database file for given partition.
+
Method Access:
Class Method: This method can only be accessed via the API class object.
Generates the absolute path to database blob file. Please note that this function does not the create database file. This function only generates the file path based on application path and partition name.
+
Parameters
relativePath : STRING
Relative path to the blob file, as it is stored in the database.
+
Synchronous Return:
STRING :
Full path to the database blob.
+
Method Access:
Class Method: This method can only be accessed via the API class object.
Ruby applications must use this method for processing of the application Event. May be called from setApplicationNotify callback.This method should be called for each event. The only exception is SyncUserChanged, where you can choose your own reset database logic.
+
Parameters
applicationEvent : STRING
See setApplicationNotify for applicationEvent values.
+
eventData : HASH
This will only contain values for the APP_EVENT_CONFIGCONFLICT event. This event may be triggered after an application was upgraded. If your rhoconfig.txt file contains custom properties that are different then what is being provided in the application upgrade package. By default local values are kept in place but you may overwrite configuration with new values and any other steps required for your application upgrade. eventData will be a hash. It will look like {“conflicting key” : [“new value”,“old value”].. }
+
Synchronous Return:
Void
Method Access:
Class Method: This method can only be accessed via the API class object.
Generates the relative path to database blob file. Please note that this function does not create a database file. This function only generates the file path based on the application path and partition name.
+
Parameters
absolutePath : STRING
Absolute path to database blob file.
+
Synchronous Return:
STRING
Method Access:
Class Method: This method can only be accessed via the API class object.
This method allows your application to register for application specific events like application activation/deactivation, UI creation/destruction as well as others. Check the Callback section for details.
+
Parameters
callback : CallBackHandlerMandatory
Async Callback Returning Parameters: HASH
applicationEvent : STRING
Possible Values :
Constant: Rho.Application.APP_EVENT_ACTIVATED (For Ruby use "::" for all "." when referencing constants) String:Activated
The application has been activated.
+
Constant: Rho.Application.APP_EVENT_DEACTIVATED (For Ruby use "::" for all "." when referencing constants) String:Deactivated
The application has been deactivated. Not supported on iOS.
+
Constant: Rho.Application.APP_EVENT_UICREATED (For Ruby use "::" for all "." when referencing constants) String:UICreated
Generated before the start page is loaded. There are no means to set callback and catch event in JavaScript. Ruby Application class descendant can set callback and process this event.
+
Constant: Rho.Application.APP_EVENT_UIDESTROYED (For Ruby use "::" for all "." when referencing constants) String:UIDestroyed
This event is triggered when the application is closing and the UI has been cleared.
+
Constant: Rho.Application.APP_EVENT_SCREEN_OFF (For Ruby use "::" for all "." when referencing constants) String:ScreenOff
Device screen was turned off when power button was pressed or due to idle timeout. Note: On iOS application is also deactivated (APP_EVENT_DEACTIVATED is fired). On Android the application is not deactivated.Not supported on Windows CE.
+ Platforms:
Android, iOS, WM
+
Constant: Rho.Application.APP_EVENT_SCREEN_ON (For Ruby use "::" for all "." when referencing constants) String:ScreenOn
Device screen was turned on and unlocked.Not supported on Windows CE.
+ Platforms:
Android, iOS, WM
+
Constant: Rho.Application.APP_EVENT_SYNCUSERCHANGED (For Ruby use "::" for all "." when referencing constants) String:SyncUserChanged
Event when the current RhoConnect user has changed. This is available under Ruby Only.
+
Constant: Rho.Application.APP_EVENT_CONFIGCONFLICT (For Ruby use "::" for all "." when referencing constants) String:ConfigConflict
This is available under Ruby Only.
+
Constant: Rho.Application.APP_EVENT_DBMIGRATESOURCE (For Ruby use "::" for all "." when referencing constants) String:DBMigrateSource
This is available under Ruby Only.
+
eventData : HASH
This will only contain values for the APP_EVENT_CONFIGCONFLICT event. This event may be triggered after an application was upgraded. If your rhoconfig.txt file contains custom properties that are different then what is being provided in the application upgrade package. By default local values are kept in place but you may overwrite configuration with new values and any other steps required for your application upgrade. eventData will be a hash. It will look like {“conflicting key” : [“new value”,“old value”].. }
+
Synchronous Return:
Void : this method also supports async callbacks - check the Callback tab for callback return parameters.
Method Access:
Class Method: This method can only be accessed via the API class object.
Path to folder where the database blob files are stored. Blobs are usually images or binary files. In the ORM Model you would specify that the attribute is of type blob Ex. When capturing an image, the actual file is saved in the databaseBlobFolder.
+
Property Access:
Instance: This property can be accessed via an instance object of this class:
Native Menu items. To customise the native application menu and controller menu items in ruby follow Application Menu API
+
Object : HASH
label : STRING
Visible label.
+
action : STRING
URL to page which will be loaded into tab. It may be path to Ruby controller action; i.e. ‘/app/Account’ would load the Account index action. For ruby callback use ‘callback:/app/Account’ Or JavaScript method to call: ‘javascript: methodOnTab();’. Or path to html page to load.
+
Property Access:
Instance: This property can be accessed via an instance object of this class:
Indicates if the security token check was failed. Security token can be set in build.yml: security_token. Same security token should be passed as command line parameter ‘-security_token=token_value’ to application. If security token check failed : if this page exist then application navigate to it, otherwise application will exit.
+
Property Access:
Instance: This property can be accessed via an instance object of this class:
Version from build time configuration file (build.yml).
+
Property Access:
Instance: This property can be accessed via an instance object of this class:
myObject.version
+
+
Examples
+
+
Get folders where items are stored
+
There are times where you need access to files bundled with your application, or to write files to a safe folder. These examples show how to retrieve each of the several important folders available.
\ No newline at end of file
diff --git a/docs/en/5.5/api/Application.xml b/docs/en/5.5/api/Application.xml
new file mode 100644
index 00000000..e7d179af
--- /dev/null
+++ b/docs/en/5.5/api/Application.xml
@@ -0,0 +1,421 @@
+
+
+
+
+ The Application class is used for accessing or setting application level configuration settings.
+
+## Enabling the API
+This API is part of the `coreapi` extension that is included automatically.
+ :::ruby
+ extensions: ["coreapi"]
+
+## JavaScript Usage
+Be sure to review the [JavaScript API Usage](/guide/api_js) guide for important information about using this API in JavaScript
+
+## Ruby Usage
+Be sure to review the [Ruby API Usage](/guide/api_ruby) guide for important information about using this API in Ruby
+
+
+## Enabling the API
+There are two methods of enabling the Application API:
+
+* Include all ebapi modules or
+* Include only the API modules you need
+
+For either of these methods, you'll need to include files from the `/Enterprise Browser/JavaScript Files/Enterprise Browser` directory on the computer that you installed the Enterprise Browser.
+
+### Include all JS API modules
+To include all JS APIs, you must copy the ebapi-modules.js file to a location accessible by your app's files and include the JavaScript file in your app. For instance, to include the modules file in your index.html, with the file in the same directory as your index.html, you would add the following line to the <head> section of your index.html:
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi-modules.js"></script>
+
+> Note: that the pathing for this file is relative to the current page.
+
+This will define the EB class within the page. Any page you need to use the modules will need to have the .js file included in this fashion.
+
+### Include only the modules you need
+To include single APIs, you must first include the `ebapi.js` in your HTML as well as the API file you want to use. For instance, to use the Application API, I would add the following code to my HTML file(s), assuming the API files have been copied to the same directory as the HTML.
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi.js"></script>
+ <script type="text/javascript" charset="utf-8" src="eb.application.js"></script>
+
+The ebapi.js file is necessary for all single API inclusions.
+
+
+
+
+
+
+
+
+ Path to apps/app folder inside the application bundle.
+
+
+ Path to apps folder inside the application bundle.
+
+
+ Path to application bundle folder.
+ Path to the Enterprise Browser folder on the device.
+
+
+ Path to folder where the application can write files and create subfolders.
+
+
+ Path to the configuration file.
+
+
+ Path to file with the model list.
+
+
+ Path to folder where the database blob files are stored. Blobs are usually images or binary files. In the ORM Model you would specify that the attribute is of type blob Ex. When capturing an image, the actual file is saved in the databaseBlobFolder.
+
+
+ Path to the application's public folder.
+
+
+
+ Startup page for your application.
+
+
+ Settings page URI. Will be used when Options menu or toolbar item is chosen by user.
+
+
+ Splash screen image display options. This a string with several parameters divided by ';': delay=5;center;hcenter;vcenter;vzoom;hzoom;zoom.
+
+
+ Version from build time configuration file (build.yml).
+ Version of Enterprise Browser.
+
+
+ Define Window caption text. If missed - caption from page used. Not supported on Windows CE devices.
+ WM, Win32
+
+
+ Application name.
+
+
+ Current application locale.Like 'en', 'ru' etc.
+
+
+
+ Current application country code.
+
+
+
+
+
+
+ Visible label.
+
+
+ URL to page which will be loaded into tab. It may be path to Ruby controller action; i.e. '/app/Account' would load the Account index action. For ruby callback use 'callback:/app/Account' Or JavaScript method to call: 'javascript: methodOnTab();'. Or path to html page to load.
+ URL to page which will be loaded. Or it can be a JavaScript method to call: 'javascript: methodOnTab();'. Or path to html page to load.
+
+
+
+ Native Menu items. To customise the native application menu and controller menu items in ruby follow [Application Menu API](http://docs.rhomobile.com/en/2.2.0/rhodesapi/menu-apis)
+ WM, CE, Android, Win32, WP8
+ WM, CE, Android, Win32
+
+
+ Native Menu items.
+
+ Same values as nativeMenu.
+
+ WM, CE, Android, Win32, WP8
+ WM, CE, Android, Win32
+
+
+ Indicates if the security token check was failed. Security token can be set in build.yml: security_token. Same security token should be passed as command line parameter '-security_token=token_value' to application. If security token check failed : if this page exist then application navigate to it, otherwise application will exit.
+ Indicates if the security token check was failed. Security token can be passed as command line parameter '-security_token=token_value' to the application. If security token check failed : if this page exist then application navigate to it, otherwise application will exit.
+ WM, CE, Win32, Android, iOS
+ WM, CE, Win32, Android
+
+
+ Page to navigate to in case of check of SecurityToken failed. Can be set in rhoconfig.txt: invalid_security_token_start_path;
+ Page to navigate to in case of check of SecurityToken failed. Can be set in rhoconfig.txt: invalid_security_token_start_path; This file is located in the installation folder of the EnetrpriseBrowser application installed on the device.
+ WM, CE, Win32, Android, iOS
+ WM, CE, Win32, Android
+
+
+
+ The version of RhoMobile platform, which was used to build the application.
+ The version of Enteprise Browser platform, which was used to build the application.
+
+
+
+ Bad link URI to navigate in browser. This is defined in config.xml: Navigation\\BadLinkURI.
+ WM
+ WebKit
+
+
+
+
+
+
+
+
+
+ Folder of the model by name.
+
+
+ Model name.
+
+
+
+
+
+ Path to the ORM database file by partition name. Please note that this function does not create a database file. This function only generates the file path based on the application path and partition name.
+
+
+ Partition name.
+
+
+
+ Full path to the database file for given partition.
+
+
+
+ Generates the absolute path to database blob file. Please note that this function does not the create database file. This function only generates the file path based on application path and partition name.
+
+
+ Relative path to the blob file, as it is stored in the database.
+
+
+
+ Full path to the database blob.
+
+
+
+ Generates the relative path to database blob file. Please note that this function does not create a database file. This function only generates the file path based on the application path and partition name.
+
+
+ Absolute path to database blob file.
+
+
+
+
+
+ Quit the application. Quitting the application while license screen is shown will be slightly delayed.
+
+
+ Minimize or move the application to background. When running in RhoSimulator this method is supported only for Windows OS.
+ Minimize or move the application to background.
+ WM, CE, Win32
+
+
+ Restores the application to be in the foreground. When running in RhoSimulator the method is supported only for Windows OS.
+ Restores the application to be in the foreground.
+ WM, CE, Win32
+
+
+ This method allows your application to register for application specific events like application activation/deactivation, UI creation/destruction as well as others. Check the Callback section for details.
+ WM, CE, Win32, Android, iOS
+ WM, CE, Win32, Android
+
+ Application events are fired to inform about application state changes. Most of the events are handled only if application is in the foreground mode (activated). You should monitor APP_EVENT_ACTIVATED and APP_EVENT_DEACTIVATED to save application state and start up/shut down activities. Events APP_EVENT_SCREEN_ON and APP_EVENT_SCREEN_OFF should be used to put app into suspend mode without deactivation. Note: Event firing behavior depends on platform.
+
+
+
+
+
+ The application has been activated.
+
+
+ The application has been deactivated. Not supported on iOS.
+ The application has been deactivated.
+
+
+ Generated before the start page is loaded. There are no means to set callback and catch event in JavaScript. Ruby Application class descendant can set callback and process this event.
+
+
+ This event is triggered when the application is closing and the UI has been cleared.
+
+
+ Device screen was turned off when power button was pressed or due to idle timeout. Note: On iOS application is also deactivated (APP_EVENT_DEACTIVATED is fired). On Android the application is not deactivated.Not supported on Windows CE.
+ Device screen was turned off when power button was pressed or due to idle timeout. On Android the application is not deactivated.Not supported on Windows CE.
+ Android, iOS, WM
+ Android, WM
+
+
+ Device screen was turned on and unlocked.Not supported on Windows CE.
+ Android, iOS, WM
+ Android, WM
+
+
+ Event when the current RhoConnect user has changed. This is available under Ruby Only.
+
+
+ This is available under Ruby Only.
+
+
+
+ This is available under Ruby Only.
+
+
+
+
+
+ This will only contain values for the `APP_EVENT_CONFIGCONFLICT` event. This event may be triggered after an application was upgraded. If your rhoconfig.txt file contains custom properties that are different then what is being provided in the application upgrade package. By default local values are kept in place but you may overwrite configuration with new values and any other steps required for your application upgrade. `eventData` will be a hash. It will look like {"conflicting key" : ["new value","old value"].. }
+
+
+
+
+
+
+ Ruby applications must use this method for processing of the application Event. May be called from setApplicationNotify callback.This method should be called for each event. The only exception is SyncUserChanged, where you can choose your own reset database logic.
+ WM, CE, Win32, Android, iOS
+ WM, CE, Win32, Android
+
+
+
+ See setApplicationNotify for applicationEvent values.
+
+
+ This will only contain values for the `APP_EVENT_CONFIGCONFLICT` event. This event may be triggered after an application was upgraded. If your rhoconfig.txt file contains custom properties that are different then what is being provided in the application upgrade package. By default local values are kept in place but you may overwrite configuration with new values and any other steps required for your application upgrade. `eventData` will be a hash. It will look like {"conflicting key" : ["new value","old value"].. }
+
+
+
+
+ Set application specific locale.
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.0.0
+ WM, CE, Win32, Android, iOS, WP8
+ WM, CE, Win32, Android
+
+
+
+
+
+
+ There are times where you need access to files bundled with your application, or to write files to a safe folder. These examples show how to retrieve each of the several important folders available.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This will minimize your application.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This will exit your application.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This will restore you application.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/en/5.5/api/Config.md b/docs/en/5.5/api/Config.md
new file mode 100644
index 00000000..3d9d6679
--- /dev/null
+++ b/docs/en/5.5/api/Config.md
@@ -0,0 +1,39 @@
+#Config
+
Remove existing property and optionally save changes to file. Remove properties works only with properties that has been set with setProperty*** methods. Properties from config file doesn’t changed.
+
Parameters
name : STRING
Name of the property.
+
saveToFile : BOOLEAN
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
Synchronous Return:
Void
Method Access:
Class Method: This method can only be accessed via the API class object.
Set boolean value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn’t change.
+
Parameters
name : STRING
Name of the property.
+
value : BOOLEAN
Value of the property.
+
saveToFile : BOOLEAN
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
Synchronous Return:
Void
Method Access:
Class Method: This method can only be accessed via the API class object.
Set integer value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn’t change.
+
Parameters
name : STRING
Name of the property.
+
value : INTEGER
Value of the property.
+
saveToFile : BOOLEAN
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
Synchronous Return:
Void
Method Access:
Class Method: This method can only be accessed via the API class object.
Set string value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn’t change.
+
Parameters
name : STRING
Name of the property.
+
value : STRING
Value of the property.
+
saveToFile : BOOLEAN
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
Synchronous Return:
Void
Method Access:
Class Method: This method can only be accessed via the API class object.
Instance: This property can be accessed via an instance object of this class:
myObject.configPath
\ No newline at end of file
diff --git a/docs/en/5.5/api/Config.xml b/docs/en/5.5/api/Config.xml
new file mode 100644
index 00000000..50a71815
--- /dev/null
+++ b/docs/en/5.5/api/Config.xml
@@ -0,0 +1,127 @@
+
+
+
+
+ Rho.Config module
+ Implementation of the Config API.
+
+ Android, WP8,iOS
+ Android
+ 5.1.0
+
+
+
+
+ Path to the config file.
+
+
+
+
+
+
+
+
+ Name of the property.
+
+
+
+ Get string value of config property.
+
+
+
+
+
+ Name of the property.
+
+
+ Value of the property.
+
+
+ If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
+
+ Set string value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn't change.
+
+
+
+
+
+ Name of the property.
+
+
+
+ Get integer value of config property.
+
+
+
+
+
+ Name of the property.
+
+
+ Value of the property.
+
+
+ If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
+
+ Set integer value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn't change.
+
+
+
+
+
+ Name of the property.
+
+
+
+ Get boolean value of config property.
+
+
+
+
+
+ Name of the property.
+
+
+ Value of the property.
+
+
+ If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
+
+ Set boolean value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn't change.
+
+
+
+
+
+ Name of the property.
+
+
+
+ Returns true if property exists in the loaded config file.
+
+
+
+
+
+ Name of the property.
+
+
+ If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
+
+
+ Remove existing property and optionally save changes to file. Remove properties works only with properties that has been set with setProperty*** methods. Properties from config file doesn't changed.
+
+
+
+ Load config from the file specified by configPath property.
+
+
+
+
+
+
+
+
diff --git a/docs/en/5.5/api/Configreadwrite.md b/docs/en/5.5/api/Configreadwrite.md
new file mode 100644
index 00000000..811840f6
--- /dev/null
+++ b/docs/en/5.5/api/Configreadwrite.md
@@ -0,0 +1,28 @@
+#Configreadwrite
+
+
The Configreadwrite API provides access to read and write to temporary config files in Android platform. It also provides capabilities to update the user configured attribute value in actual config file.
+
Enabling the API
+
+
In order to use this API you must include the following extension in your build.yml.
+
+
:::ruby
+extensions: ["configreadwrite"]
+
+
+
The configreadwrite extension is also included automatically if you specify the following in your build.yml
+
+
:::ruby
+app_type: "rhoelements"
+
+
+
NOTE: If you are building a Windows Mobile or Windows CE app with this API, you must set your app_type as “rhoelements” in your build.yml as shown here.
+
+
JavaScript Usage
+
+
Be sure to review the JavaScript API Usage guide for important information about using this API in JavaScript.
+
+
Ruby Usage
+
+
Be sure to review the Ruby API Usage guide for important information about using this API in Ruby.
+
+
\ No newline at end of file
diff --git a/docs/en/5.5/api/Configreadwrite.xml b/docs/en/5.5/api/Configreadwrite.xml
new file mode 100644
index 00000000..92b80221
--- /dev/null
+++ b/docs/en/5.5/api/Configreadwrite.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ The Configreadwrite API provides access to read and write to temporary config files in Android platform. It also provides capabilities to update the user configured attribute value in actual config file.
+
+## Enabling the API
+In order to use this API you must include the following extension in your `build.yml`.
+ :::ruby
+ extensions: ["configreadwrite"]
+
+The `configreadwrite` extension is also included automatically if you specify the following in your `build.yml`
+ :::ruby
+ app_type: "rhoelements"
+
+NOTE: If you are building a Windows Mobile or Windows CE app with this API, you must set your app_type as "rhoelements" in your build.yml as shown [here](../guide/build_config#other-build-time-settings).
+
+## JavaScript Usage
+Be sure to review the [JavaScript API Usage](/guide/api_js) guide for important information about using this API in JavaScript.
+
+## Ruby Usage
+Be sure to review the [Ruby API Usage](/guide/api_ruby) guide for important information about using this API in Ruby.
+
+
+ 5.3.0
+ Android
+
+
+
+ Write to actual xml file
+
+
+
+
+
+
+
+ Get the status whether updation was done properly or not.
+
+
+
+ Android
+
+
+ Write to temporary xml file
+
+
+
+
+
+
+
+ Get the status whether updation was done properly or not.
+
+
+
+ Android
+
+
+ Read from temporary xml file
+
+
+
+ Reading the value from temporary config.xml.
+
+
+
+ Android
+
+
+ Read from Original xml file
+
+
+
+ Reading the value from temporary config.xml.
+
+
+
+ Android
+
+
+
+
+
+
+ 5.3.0
+
+
+
+
diff --git a/docs/en/5.5/api/ConnectionChecking.md b/docs/en/5.5/api/ConnectionChecking.md
new file mode 100644
index 00000000..45e7a752
--- /dev/null
+++ b/docs/en/5.5/api/ConnectionChecking.md
@@ -0,0 +1,15 @@
+#ConnectionChecking
+
Instance: This property can be accessed via an instance object of this class:
myObject.trackConnection
\ No newline at end of file
diff --git a/docs/en/5.5/api/ConnectionChecking.xml b/docs/en/5.5/api/ConnectionChecking.xml
new file mode 100644
index 00000000..fcbabb66
--- /dev/null
+++ b/docs/en/5.5/api/ConnectionChecking.xml
@@ -0,0 +1,41 @@
+
+
+
+
+ Example extension api
+ This is example of API. Implementation contain in extension.
+
+
+
+
+
+
+
+ list of properties supported by instance of object
+
+ The URL to be checked for connection
+
+
+ whether this feature to be implemeneted or not
+
+
+ The total time for checking the connection.
+
+
+ The time gap between sucessive cheking.
+
+
+ The message to be displayed during connection checking
+
+
+
+
+
+
+
+
+ 1.0.0
+
+
+
+
diff --git a/docs/en/5.5/api/Database.md b/docs/en/5.5/api/Database.md
new file mode 100644
index 00000000..c4349053
--- /dev/null
+++ b/docs/en/5.5/api/Database.md
@@ -0,0 +1,140 @@
+#Database
+
This method is a constructor for this class. Instead of saying Rho.Database.initialize(dbPath,dbPartition) you would use new Rho.Database(dbPath,dbPartition). ex: var db = new Rho.Database(Rho.Application.databaseFilePath('test'), 'test'); Make sure you issue a .close() when you are finished using the database. If the database file does not exist it will be created using a SQL schema: rhodes\platform\shared\db\res\db\syncdb.schema. Do not use predefined partition names: app, user, local. Do not open the same database file in different partitions. Do not use the same partition for different database files. Do not open the same file twice.
+
Parameters
dbPath : STRING
The path to the database. Databases stored at the path provided by Application.databaseFilePath.
+
dbPartition : STRING
The database partition. Used as a file name for database and when connecting to RhoConnect server.
+
Synchronous Return:
Void
Method Access:
Class Method: This method is a constructor and can only be accessed via the `new` construct.
JavaScript: var myObj = new Rho.Database(STRING dbPath, STRING dbPartition)
Start database transaction. All operations will not be the saved to the database until a commit is executed.
+
Synchronous Return:
Void
Method Access:
Instance Method: This method can be accessed via an instance object of this class:
myObject.startTransaction()
+
+
Examples
+
+
Using Transactions
+
To insert/update multiple object/models use database transactions. This is the most performant method to initialize your application with a large set of data.
\ No newline at end of file
diff --git a/docs/en/5.5/api/Database.xml b/docs/en/5.5/api/Database.xml
new file mode 100644
index 00000000..3dcea425
--- /dev/null
+++ b/docs/en/5.5/api/Database.xml
@@ -0,0 +1,297 @@
+
+
+
+
+ Database is low-level API to access SQLite local database.
+ This API used internally by RHOM. To use RHOM, just define your models and partition databases will be created automatically.
+## Enabling the API
+This API is part of the `coreapi` extension that is included automatically.
+ :::ruby
+ extensions: ["coreapi"]
+
+## JavaScript Usage
+Be sure to review the [JavaScript API Usage](/guide/api_js) guide for important information about using this API in JavaScript.
+
+## Ruby Usage
+Be sure to review the [Ruby API Usage](/guide/api_ruby) guide for important information about using this API in Ruby.
+
+
+## Enabling the API
+There are two methods of enabling the Database API:
+
+* Include all ebapi modules or
+* Include only the API modules you need
+
+For either of these methods, you'll need to include files from the `/Enterprise Browser/JavaScript Files/Enterprise Browser` directory on the computer that you installed the Enterprise Browser.
+
+### Include all JS API modules
+To include all JS APIs, you must copy the ebapi-modules.js file to a location accessible by your app's files and include the JavaScript file in your app. For instance, to include the modules file in your index.html, with the file in the same directory as your index.html, you would add the following line to the <head> section of your index.html:
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi-modules.js"></script>
+
+> Note: that the pathing for this file is relative to the current page.
+
+This will define the EB class within the page. Any page you need to use the modules will need to have the .js file included in this fashion.
+
+### Include only the modules you need
+To include single APIs, you must first include the `ebapi.js` in your HTML as well as the API file you want to use. For instance, to use the Database API, I would add the following code to my HTML file(s), assuming the API files have been copied to the same directory as the HTML.
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi.js"></script>
+ <script type="text/javascript" charset="utf-8" src="eb.database.js"></script>
+
+The ebapi.js file is necessary for all single API inclusions.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This method is a constructor for this class. Instead of saying Rho.Database.initialize(dbPath,dbPartition) you would use new Rho.Database(dbPath,dbPartition). ex: `var db = new Rho.Database(Rho.Application.databaseFilePath('test'), 'test');` Make sure you issue a `.close()` when you are finished using the database. If the database file does not exist it will be created using a SQL schema: rhodes\platform\shared\db\res\db\syncdb.schema. Do not use predefined partition names: app, user, local. Do not open the same database file in different partitions. Do not use the same partition for different database files. Do not open the same file twice.
+ This method is a constructor for this class. Instead of saying `EB.Database.initialize(dbPath,dbPartition)` you would use `new EB.Database(dbPath,dbPartition)`. ex: `var db = new EB.Database(EB.Application.databaseFilePath('test'), 'test');` Make sure you issue a `.close()` when you are finished using the database. If the database file does not exist it will be created using a default SQL schema. Do not use predefined partition names: app, user, local. Do not open the same database file in different partitions. Do not use the same partition for different database files. Do not open the same file twice.
+
+
+ The path to the database. Databases stored at the path provided by Application.databaseFilePath.
+
+
+ The database partition. Used as a file name for database and when connecting to RhoConnect server.
+
+
+
+
+ Closes the database. The database will not be accessible until it is opened again.
+
+
+ Start database transaction. All operations will not be the saved to the database until a commit is executed.
+
+
+ Commit database transaction. Saves all updates to the database from the start of the transaction.
+
+
+ Rollback database transaction. This will cancel any pending actions to the database that were executed since the last Start and before a commit.
+
+
+ Lock database. This method should be used to synchronize Database access with RhoConnect client. The startTransaction method also locks the database but if you're going to read from database, lockDb is faster.
+
+
+ Unlock database, previously locked by lockDb.
+
+
+ Indicates if UI waiting for DB? Should be used in separate thread, which updates database (implementing custom data sync logic). Will be true when database method calls from Main application thread and waits for database.
+
+
+
+ Execute the sql statement specified in the method's parameters.
+
+
+ The SQL statement.
+
+
+ Array of the sql expressions.
+
+
+
+
+ Array of Hashes. Each Hash item represents record from Database.
+
+
+
+ Execute a series of sql statements included in the sqlStmt string parameter.
+
+
+ The SQL statement.
+
+
+
+
+ Import the contents of the archived database into the current database.
+
+
+ The name of the zip file.
+
+
+
+
+
+ Exports the contents of the current database to a file.
+
+
+
+ Destroys a database table.
+
+
+ Table name to destroy.
+
+
+
+
+ Destroy a list of database tables.
+
+
+
+
+ Include tables.
+
+
+ Exclude tables.
+
+
+
+
+
+
+ Will return true or false if the specified table exists in the current database.
+
+
+ The name of the table.
+
+
+
+
+
+ Set "do not backup attribute" for the database file. This is special flag set on files, which will exclude it from iCloud service.
+ iOS
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.0.0
+ WM, CE, Win32, Android, iOS, WP8
+ WM, CE, Win32, Android
+
+
+
+
+ To insert/update multiple object/models use database transactions. This is the most performant method to initialize your application with a large set of data.
+
+
+ item['value1'],
+ :field2 => item['value2']
+ }
+ # Creates a new itemModel object and saves it
+ new_item = itemModel.create(data)
+ end
+ db.commitTransaction
+rescue
+ db.rollbackTransaction
+end
+]]>
+
+
+
+
+
+
+
+
+
+
+
+
+ The following example opens the database using the `constructor` method: .initialize. It then closes the database using the destructor method `.close()`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Destroy multiple tables. The following example opens the database using the `constructor` method: .initialize.
+
+
+ [], :exclude => [])
+
+# destroy specified tables
+db.destroyTables(:include => ['table1', 'table2'], :exclude => [])
+
+# destroy all but specified tables
+db.destroyTables(:include => [], :exclude => ['table1', 'table2'])
+]]>
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/en/5.5/api/EzNFC.md b/docs/en/5.5/api/EzNFC.md
new file mode 100644
index 00000000..7d06c5ba
--- /dev/null
+++ b/docs/en/5.5/api/EzNFC.md
@@ -0,0 +1,50 @@
+#EzNFC
+
Determines whether NFC is supported on the device. Returns true if NFC is supported.
+
Default: false
Property Access:
Instance: This property can be accessed via an instance object of this class:
myObject.isSupported
+
+
Remarks
+
+
General
+
NFC reads are only possible when the application is in the foreground.
+
It is mandatory to disable default NFC application of the device before using this API.
+
The APIs are designed to read NON-Secure NFC Tags.
+
The NFC APIs are designed to work in Reader Mode only.
+
+
+
Recommended order of API calls
+
EB.EzNFC.isSupported;
+
EB.EzNFC.isEnabled;
+
EB.EzNFC.enableAdapter();
+
EB.EzNFC.enableRead();
+
EB.EzNFC.disableRead();
+
+
+
\ No newline at end of file
diff --git a/docs/en/5.5/api/EzNFC.xml b/docs/en/5.5/api/EzNFC.xml
new file mode 100644
index 00000000..fa042081
--- /dev/null
+++ b/docs/en/5.5/api/EzNFC.xml
@@ -0,0 +1,272 @@
+
+
+
+
+ This API is used to enable/disable the NFC Adapter and read NFC Tags. **The EzNFC API is currently supported on Android only**.
+
+## Enabling the API
+In order to use this API you must include the following extension in your `build.yml`.
+ extensions: ["eznfc"]
+
+
+## Enabling the API
+There are two ways to enable Enterprise Browser APIs:
+
+* Include all 'ebapi' modules
+* Include only the API modules you need
+
+Both methods are explained below.
+
+Either way, the included files will be from:
+`/Enterprise Browser/JavaScript Files/Enterprise Browser`,
+a directory on the computer that contains the Enterprise Browser installation.
+
+### Include all JS API modules
+To include all JavaScript APIs, copy the `ebapi-modules.js` file to a location accessible by your app's files and include the JavaScript modules file in your app. For instance, to include the modules file in your `index.html`, copy the file to the same directory as your index.html and add the following line to the HEAD section of your index.html file:
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi-modules.js"></script>
+
+> This will define the EB class within the page. **Note that the path for this file is relative to the current page** (index.html). Any page on which the modules are required will need to have the required .js file(s) included in this fashion.
+
+### Include only the modules you need
+
+To include individual APIs, you must first include the `ebapi.js` in your HTML, and then the additional required API file(s). For instance, to use the EzNFC API, add the following code to the HTML file(s). Again, this assumes that relevant API files have been copied to the same directory as the HTML.
+
+ :::html
+ <script type="text/javascript" charset="utf-8" src="ebapi.js"></script>
+ <script type="text/javascript" charset="utf-8" src="eb.eznfc.js"></script>
+
+> In the code lines above, notice that `ebapi.js` is included first, followed by `eb.eznfc.js`, which is the EzNFC API for Enterprise Browser. **This coding is required on each HTML page whenever an individual API will be called from that page**.
+
+
+ 1.4.0
+ Android
+
+
+
+
+
+ Android
+ Determines whether NFC is supported on the device. Returns true if NFC is supported.
+ Android
+
+
+
+ Android
+ Detects whether the NFC Adapter is enabled. Returns true if the NFC Adapter is enabled.
+ Android
+
+
+
+
+
+
+ Navigates to device NFC Adapter settings screen if device's NFC Adapter is not enabled.
+ Android
+
+
+
+ Enables NFC read of the application if device supports NFC.
+ Android
+
+ List of callback data after the NFC Tag is read
+
+
+ The Type of NFC Tag that has been read
+
+
+ The ID of the Tag that has been read
+
+
+ Payload is the data overall data of NFC Tag
+
+
+ TNF is last 3 bits of Payload
+
+
+ Text encoding format applied
+
+
+ The String data that is read from Tag
+
+
+ NFC Tag id in Hexacode
+
+
+
+
+
+
+
+ Disables NFC read of the application.
+ Android
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This example shows how to use the EzNFC API:
+
+
+
+ Enterprise Browser NFC API Test
+
+
+
+
+