Camera

Last Updated On 2021-07-16

Version 3MinSDK 7Tutorial Video

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.



Block Properties

You can set the below blocks properties in the blocks section of the builder.

UseFront

Returns true if the front-facing camera is to be used (when available)



Methods

You can set the below method blocks in the blocks section of the builder.

TakePicture

Takes a picture, then raises the


Events

You can set the below event blocks in the blocks section of the builder.

AfterPicture

Called after the picture is taken. The text argument `image` is the path that can be used to locate the image on the phone.