ImagePicker.SetShowsCameraControls
----------------------------------

Sets camera controls visibility.

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

MBS( "ImagePicker.SetShowsCameraControls"; Value ) 

**MBS**( **"ImagePicker.SetShowsCameraControls";** /\* Sets camera controls visibility. \*/  
**$Value**) /\* The new setting.  
Pass 1 to show camera controls or 0 to hide.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting.   Pass 1 to show camera controls or 0 to hide. | 1 |

### Result

Returns OK or error.

### Description

Sets camera controls visibility.  
Indicates whether the image picker displays the default camera controls.  
The default value of this property is 1, which specifies that the default camera controls are visible in the picker. Set it to 0 to hide the default controls if you want to instead provide a custom overlay view using the cameraOverlayView property.  
  
If you set this property to 0 and provide your own custom controls, you can take multiple pictures before dismissing the image picker interface. However, if you set this property to 1, your delegate must dismiss the image picker interface after the user takes one picture or cancels the operation.  
You can access this property only when the source type of the image picker is set to Camera. Attempting to access this property for other source types results in an error. Depending on the value you assign to the mediaTypes property, the default controls display the still camera or movie camera interface, or a selection control that lets the user choose the picker interface.  
### See also

- [ImagePicker.GetShowsCameraControls](ImagePickerGetShowsCameraControls.md)
- [ImagePicker.New](ImagePickerNew.md)
- [ImagePicker.Present](ImagePickerPresent.md)
- [ImagePicker.SetOverlayImage](ImagePickerSetOverlayImage.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 is free to use.

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

  
[ImagePicker.SetScript](ImagePickerSetScript.md) - [ImagePicker.SetSourceType](ImagePickerSetSourceType.md)

[HTML Version](ImagePickerSetShowsCameraControls.shtml)