| Built-in front calls / Built-in front calls | |
This section describes common front calls provided by all mobile front-ends.
This table shows the functions implemented by all mobile front-ends in the "mobile" module.
| Function Name | Description |
|---|---|
ui.Interface.frontCall("mobile", "chooseContact",
[], [result])
|
Lets the user choose a contact from the mobile device contact list and returns the vCard. |
ui.Interface.frontCall("mobile", "choosePhoto",
[], [path])
|
Lets the user select a picture from the mobile device's photo gallery and returns a picture identifier. |
ui.Interface.frontCall("mobile", "chooseVideo",
[], [path])
|
Lets the user select a video from the mobile device's video gallery and returns a video identifier. |
ui.Interface.frontCall("mobile", "composeMail",
[to, subject, content, cc, bcc, attachments ...],
[result])
|
Invokes the user's default mail application for a new mail to send. |
ui.Interface.frontCall("mobile", "composeSMS",
[ recipients, content ],
[ result ] )
|
Sends an SMS text to one or more phone numbers. |
ui.Interface.frontCall("mobile", "connectivity",
[], [result] )
|
Returns the type of network available for the mobile device. |
ui.Interface.frontCall("mobile", "getGeolocation",
[], [status, latitude, longitude] )
|
Returns the Global Positioning System (GPS) location of a mobile device. |
ui.Interface.frontCall("mobile","getRemoteNotifications",
[sender_id], [data] )
|
This front call retrieves push notification messages. |
ui.Interface.frontCall("mobile", "importContact",
[vcard], [result] )
|
Creates a new, or merges to an existing entry, the contact details passed in vCard string. |
ui.Interface.frontCall("mobile","registerForRemoteNotifications",
[sender_id], [registration_token] )
|
This front call registers a mobile device for push notifications. |
ui.Interface.frontCall("mobile", "runOnServer",
[ appurl, timeout ], [] )
|
Run an application from the Genero Application Server according to the specified URL. |
ui.Interface.frontCall("mobile", "scanBarCode",
[], [code, type] )
|
Allow the user to scan a barcode with a mobile device |
ui.Interface.frontCall("mobile", "takePhoto",
[], [path] )
|
Lets the user take a picture with the mobile device and returns the corresponding picture identifier. |
ui.Interface.frontCall("mobile", "takeVideo",
[], [path])
|
Lets the user take a video with the mobile device and returns the corresponding video identifier. |
ui.Interface.frontCall("mobile","unregisterFromRemoteNotifications",
[ sender_id ], [] )
|
This front call unregisters the mobile device from push notifications. |