Built-in front calls summary
Various front-end functions are implemented within Genero front-ends.
This section describes the front-end functions available for all types of front-ends. Note that several front-end functions are specific to the type of front-end.
Function Name | Description |
---|---|
|
Adds to the content of the clipboard. |
|
Clears the content of the clipboard. |
|
Gets the content of the clipboard. |
|
Pastes the content of the clipboard to the current field. |
|
Set the content of the clipboard. |
|
Executes a command on the front-end platform, with or without waiting. |
|
Queries general front-end properties. |
|
Returns an environment variable set in the user session on the front end platform. |
|
Prints a screenshot of the current window |
|
Opens a URL with the default URL handler of the front-end. |
|
Displays a file dialog window to get a directory path on the local file system. |
|
Displays a file dialog window to let the user select a single file path on the local file system. |
|
Displays a file dialog window to let the user select a list of file paths on the local file system. |
|
Plays the sound file passed as parameter on the front-end platform. |
|
Asks GDC to restore the stored window container size. |
|
Asks GDC to store the size of the current window container. |
|
Displays a file dialog window to get a path to save a file on the local file system. |
|
Opens a file on the front-end platform with the program associated to the file extension. |
Function Name | Description |
---|---|
|
Calls a JavaScript function through the web component. |
|
Returns the API version of web component front-end calls. |
|
Returns the title of the HTML doc rendered by a web component. |
Function Name | Description |
---|---|
|
Starts the GDC update. |
Function Name | Description |
---|---|
|
Activates a specific theme. |
|
Gets the active theme. |
|
Lists all available themes. |
Function Name | Description |
---|---|
|
Removes all local storage key/value pairs. |
|
Returns the current value of local storage key. |
|
Returns the list of defined local storage keys. |
|
Deletes the specified local storage key. |
|
Sets a value for local storage key. |
Function Name | Description |
---|---|
|
Lets the user choose a contact from the mobile device contact list and returns the vCard. |
|
Lets the user select a picture from the mobile device's photo gallery and returns a picture identifier. |
|
Lets the user select a video from the mobile device's video gallery and returns a video identifier. |
|
Invokes the user's default mail application for a new mail to send. |
|
Sends an SMS text to one or more phone numbers. |
|
Returns the type of network available for the mobile device. |
|
Returns the Global Positioning System (GPS) location of a mobile device. |
|
This front call retrieves push notification messages. |
|
Creates a new contact, or merges to an existing entry, the contact details passed in a vCard string. |
|
Indicates if the mobile app is in foreground mode. |
|
Opens contact input form to create a new entry in the contact database. |
|
This front call registers a mobile device for push notifications. |
|
Run an application from the Genero Application Server using the specified URL. |
|
Allow the user to scan a barcode with a mobile device |
|
Lets the user take a picture with the mobile device and returns the corresponding picture identifier. |
|
Lets the user take a video with the mobile device and returns the corresponding video identifier. |
|
This front call unregisters the mobile device from push notifications. |
Function Name | Description |
---|---|
|
Ask the user to enable a dangerous feature on the Android device. |
|
Shows the GMA about box displaying version information. |
|
Shows the GMA settings box controlling debug options. |
|
Starts an external Android application (activity), and returns to the GMA application immediately. |
|
Starts an external application (Android activity) and waits until the activity is closed. |
Function Name | Description |
---|---|
|
Returns the current badge number associated to the app. |
|
Sets the current badge number associated to the app. |
Function Name | Description |
---|---|
|
Calls a function in a Cordova plugin and returns a result. |
|
Calls a function asynchronously in a Cordova plugin, without waiting for a result. |
|
Returns all results for asynchronous Cordova plugin front calls, based on a callback ID filter. |
|
Returns the number of pending Cordova plugin results. |
|
Returns the first Cordova plugin result from the result queue of all asynchronous Cordova plugin front calls, and removes it from the queue. |
|
Returns details about a specific Cordova plugin. |
|
Returns the list of available Cordova plugins. |