Cordova plugin front calls

Genero provides a set of Cordova plugin front calls that make use of the Cordova plugins.

This table shows the functions implemented by the Androidâ„¢ and iOS front-end in the "cordova" module.

Table 1. Cordova front-end functions
Function Name Description
ui.Interface.frontCall("cordova", "call",
  [plugin-name, function-name [, param1, param2, ... ] ],
  [result]
)
Calls a function in a Cordova plugin and returns a result.
ui.Interface.frontCall("cordova", "callWithoutWaiting",
  [plugin-name, function-name [, param1, param2, ... ] ],
  [callback-id])
Calls a function asynchronously in a Cordova plugin, without waiting for a result.
ui.Interface.frontCall("cordova", "getAllCallbackData",
  [callback-id-filter], [results])
Returns all results for asynchronous Cordova plugin front calls, based on a callback ID filter.
ui.Interface.frontCall("cordova", "getCallbackDataCount",
  [], [count])
Returns the number of pending Cordova plugin results.
ui.Interface.frontCall("cordova", "getCallbackData",
  [], [result, callback-id])
Returns the first Cordova plugin result from the result queue of all asynchronous Cordova plugin front calls, and removes it from the queue.
ui.Interface.frontCall("cordova", "getPluginInfo",
  [plugin-name], [result] )
Returns details about a specific Cordova plugin.
ui.Interface.frontCall("cordova", "listPlugins",
  [ ], [plugins] )
Returns the list of available Cordova plugins.