Built-in front calls / Genero Mobile common front calls |
Lets the user take a picture with the mobile device and returns the corresponding picture identifier.
ui.Interface.frontCall("mobile", "takePhoto", [], [path] )
The "takePhoto" front call invokes the mobile device's camera to let the user take a picture and returns the local path/URL on the mobile device to the picture.
If the photo is canceled by the user, the front call returns NULL.
The value returned in the path variable contains a reference to the system location of the picture on the mobile device. This path is platform dependent, and may change in future versions. Consider the path returned by this front call as an opaque local file identifier, and do not use this path as a persistent file name for the picture.
For more details about mobile image handling, see images handling on mobile devices.