ImagePicker.SetCameraDevice
---------------------------

Sets camera device.

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

MBS( "ImagePicker.SetCameraDevice"; CameraDevice ) 

**MBS**( **"ImagePicker.SetCameraDevice";** /\* Sets camera device. \*/  
**$CameraDevice**) /\* The new setting.  
Can be front or rear.e.g. "front" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| CameraDevice | The new setting.   Can be front or rear. | "front" |

### Result

Returns OK or error.

### Description

Sets camera device.  
The camera used by the image picker controller.  
Default is Rear.  
### See also

- [ImagePicker.GetCameraDevice](ImagePickerGetCameraDevice.md)
- [ImagePicker.New](ImagePickerNew.md)
- [ImagePicker.Present](ImagePickerPresent.md)
- [ImagePicker.SetCameraFlashMode](ImagePickerSetCameraFlashMode.md)
- [ImagePicker.StartVideoCapture](ImagePickerStartVideoCapture.md)

### Example Databases

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

### Blog Entries

- [Overlay image for Image Picker](https://www.mbsplugins.de/archive/2018-05-25/Overlay_image_for_Image_Picker/monkeybreadsoftware_blog_filemaker)
- [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 18th June 2017

  
[ImagePicker.SetCameraCaptureMode](ImagePickerSetCameraCaptureMode.md) - [ImagePicker.SetCameraFlashMode](ImagePickerSetCameraFlashMode.md)

[HTML Version](ImagePickerSetCameraDevice.shtml)