ImagePicker.New
---------------

Initializes the picker panel.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImagePicker](component_ImagePicker.md) | [7.3](newinversion73.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "ImagePicker.New" ) ### 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](ImagePickerSetScript.md)"; Get(FileName); "GotImage") \]   
Set Variable \[ $r ; Value: MBS ( "[ImagePicker.SetSourceType](ImagePickerSetSourceType.md)"; "Camera") \]   
Set Variable \[ $r ; Value: MBS ( "[ImagePicker.SetAllowsEditing](ImagePickerSetAllowsEditing.md)"; 1 ) \]   
Set Variable \[ $r ; Value: MBS ( "[ImagePicker.SetCameraCaptureMode](ImagePickerSetCameraCaptureMode.md)"; "Photo" ) \]   
Set Variable \[ $r ; Value: MBS ( "[ImagePicker.SetCameraDevice](ImagePickerSetCameraDevice.md)"; "Front" ) \]   
Set Variable \[ $r ; Value: MBS ( "[ImagePicker.SetCameraFlashMode](ImagePickerSetCameraFlashMode.md)"; "Auto" ) \]   
Set Variable \[ $r ; Value: MBS ( "[ImagePicker.SetShowsCameraControls](ImagePickerSetShowsCameraControls.md)"; 1 ) \]   
Set Variable \[ $r ; Value: MBS ( "[ImagePicker.Present](ImagePickerPresent.md)") \]  
### See also

- [ImagePicker.Present](ImagePickerPresent.md)
- [ImagePicker.SetAllowsEditing](ImagePickerSetAllowsEditing.md)
- [ImagePicker.SetCameraCaptureMode](ImagePickerSetCameraCaptureMode.md)
- [ImagePicker.SetCameraDevice](ImagePickerSetCameraDevice.md)
- [ImagePicker.SetCameraFlashMode](ImagePickerSetCameraFlashMode.md)
- [ImagePicker.SetMediaTypes](ImagePickerSetMediaTypes.md)
- [ImagePicker.SetOverlayImage](ImagePickerSetOverlayImage.md)
- [ImagePicker.SetScript](ImagePickerSetScript.md)
- [ImagePicker.SetShowsCameraControls](ImagePickerSetShowsCameraControls.md)
- [ImagePicker.SetSourceType](ImagePickerSetSourceType.md)

### Example Databases

- [iOS/Examples/iOS ImagePicker](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/iOS%20ImagePicker.shtml#4ScriptAnchor_)

### Blog Entries

- [Image Picker for FileMaker iOS SDK apps with MBS Plugin](https://www.mbsplugins.de/archive/2017-06-20/Image_Picker_for_FileMaker_iOS/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 17th June 2017 , last changed 20th June 2017

  
[ImagePicker.MediaURL](ImagePickerMediaURL.md) - [ImagePicker.Present](ImagePickerPresent.md)

[HTML Version](ImagePickerNew.shtml)