Retrieves a photo, an image or a video stored in the photo album of the mobile device.
// Select the image
// recommended syntax on iOS and Android
// Caution: On Android 10 and higher, applications must not run in the background.
bRes is boolean
bRes = AlbumPicker(AlbumPicker_Callback)
INTERNAL PROCEDURE AlbumPicker_Callback(sImagePath = "")
IMG_MyImage = sImagePath
END
Syntax
Selecting an element in the album: path retrieved in a procedure (Recommended syntax) Hide the details
<Result> = AlbumPicker([<Type to retrieve>, ] <WLanguage procedure>)
<Result>: Boolean
- True if the image or the video was selected,
- False otherwise.
<Type to retrieve>: Integer constant
Type of element that will be retrieved in the album: | |
albumImage (Default value) | Select an image in the album. |
albumVideo | Select a video in the album. |
Remark: these constants cannot be combined. A single type can be selected during the call to the function.
<WLanguage procedure>: Procedure name
Name of WLanguage procedure run during the selection in the album. For more details on this procedure, see Parameters of the procedure used by AlbumPicker.
Remarks
Operating mode
When AlbumPicker is called, the user selects the desired image from the images displayed in a specific window.
Once the choice is validated, the selected image is saved:
- AlbumPicker returns the photo save path so that it can be handled (syntax 1).
- the specified WLanguage procedure is used to find out the photo save path so that it can be handled (syntax 2).
Component: wd270android.aar