Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
ImagePicker.New
Initializes the picker panel.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ImagePicker | 7.3 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameters
none
Result
Returns OK or error.
Description
Initializes the picker panel.Examples
Show picker for camera:
Set Variable [ $r ; Value: MBS( "ImagePicker.New" ) ]
Set Variable [ $r ; Value: MBS( "ImagePicker.SetScript"; Get(FileName); "GotImage") ]
Set Variable [ $r ; Value: MBS( "ImagePicker.SetSourceType"; "Camera") ]
Set Variable [ $r ; Value: MBS( "ImagePicker.SetAllowsEditing"; 1 ) ]
Set Variable [ $r ; Value: MBS( "ImagePicker.SetCameraCaptureMode"; "Photo" ) ]
Set Variable [ $r ; Value: MBS( "ImagePicker.SetCameraDevice"; "Front" ) ]
Set Variable [ $r ; Value: MBS( "ImagePicker.SetCameraFlashMode"; "Auto" ) ]
Set Variable [ $r ; Value: MBS( "ImagePicker.SetShowsCameraControls"; 1 ) ]
Set Variable [ $r ; Value: MBS( "ImagePicker.Present") ]
See also
- ImagePicker.Present
- ImagePicker.SetAllowsEditing
- ImagePicker.SetCameraCaptureMode
- ImagePicker.SetCameraDevice
- ImagePicker.SetCameraFlashMode
- ImagePicker.SetMediaTypes
- ImagePicker.SetOverlayImage
- ImagePicker.SetScript
- ImagePicker.SetShowsCameraControls
- ImagePicker.SetSourceType
Example Databases
Blog Entries
This function checks for a license.
Created 17th June 2017, last changed 20th June 2017