> For the complete documentation index, see [llms.txt](https://docs.flipabit.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flipabit.dev/api/widget/camera.md).

# Camera

<div align="left"><img src="/files/-MIxukRZovPvw4CViGdy" alt=""></div>

| Property    | Function                                                                                                                                                                           | Type                                                                                                                                                                                                                                                           |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Fill mode   | <p>Image fill mode<br><br><strong>Actions editor:</strong><br><code>Property > Camera > Fill mode</code><br><strong>Code:</strong><br><code>widget.content.fillMode</code></p>     | <p><code>enum</code><br><br><strong>Values:</strong><br><code>Stretch</code><br><code>PreserveAspectFit</code><br><code>PreserveAspectCrop</code><br><code>Tile</code><br><code>TileVertically</code><br><code>TileHorizontally</code><br><code>Pad</code></p> |
| Device id   | <p>Camera device id<br><br><strong>Actions editor:</strong><br><code>Property > Camera > Device id</code><br><strong>Code:</strong><br><code>widget.content.deviceId</code></p>    | `string`                                                                                                                                                                                                                                                       |
| CapturedUrl | <p>Not documented<br><br><strong>Actions editor:</strong><br><code>Property > Camera > CapturedUrl</code><br><strong>Code:</strong><br><code>widget.content.capturedUrl</code></p> | `string`                                                                                                                                                                                                                                                       |
| Orientation | <p>Not documented<br><br><strong>Actions editor:</strong><br><code>Property > Camera > Orientation</code><br><strong>Code:</strong><br><code>widget.content.orientation</code></p> | `int`                                                                                                                                                                                                                                                          |
| Position    | <p>Not documented<br><br><strong>Actions editor:</strong><br><code>Property > Camera > Position</code><br><strong>Code:</strong><br><code>widget.content.position</code></p>       | `int`                                                                                                                                                                                                                                                          |

## Actions

| Property             | Function                                                                                                                                                                                             |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Capture              | <p>Save camera frame to image<br><br><strong>Actions editor:</strong><br><code>Actions > Common > Capture</code><br><strong>Code:</strong><br><code>widget.content.script.actionCapture()</code></p> |
| Turn on front camera | <p><strong>Actions editor:</strong><br><code>Actions > Common > Turn on front camera</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetFrontPosition()</code></p>             |
| Turn on rear camera  | <p><strong>Actions editor:</strong><br><code>Actions > Common > Turn on rear camera</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetRearPosition()</code></p>               |
| Toggle front/rear    | <p><strong>Actions editor:</strong><br><code>Actions > Common > Toggle front/rear</code><br><strong>Code:</strong><br><code>widget.content.script.actionToggleCameraPosition()</code></p>            |

## Events

| Property | Function                                                                                                                                                                                             |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Captured | <p>Event when camera frame was captured<br><br><strong>Actions editor:</strong><br><code>Event > Captured</code><br><strong>Code:</strong><br><code>widget.content.script.eventCaptured()</code></p> |
