Skip to content

Camera

Non-Visible component
Category Requires Version
Media API 21, Android 5.0 Lollipop 4

Overview

A component to take a picture using the device's camera. After the picture is taken, the name of the file on the phone containing the picture is available as an argument to the AfterPicture event. The file name can be used, for example, to set the Picture property of an Image component.

Permissions

Events

After Picture

Returns the taken picture.

Params
image Text

Methods

Has Flash

Returns: Boolean

Returns true if your device has a flash.

Take Picture

Take a picture with the camera of your device.

Toggle Light

Toggle the flash of your device to on or off.

Properties

Use Front

⚠ Deprecated

Boolean ➖ Read Write - Blocks

Specifies whether the front-facing camera should be used (when available). If the device does not have a front-facing camera, this option will be ignored and the camera will open normally.


Last update: November 9, 2022