Built-in front calls / Genero Mobile common front calls |
Lets the user select a picture from the mobile device's photo gallery and returns a picture identifier.
ui.Interface.frontCall("mobile", "choosePhoto", [], [path])
The "choosePhoto" front call starts the system's photo chooser (the device's photo gallery), allows the user to choose a photo, and returns the path/URL on the mobile device of the chosen photo.
If the user cancels the photo chooser, NULL is returned.
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.