Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 820 Bytes

camera.md

File metadata and controls

24 lines (14 loc) · 820 Bytes
description
With the camera component, you can open up your phone’s camera to take a picture.

Camera

Take Photo

The camera block has three outputs:

i) Photo: This saves the photo taken by the user.

ii) DidUserCancel: This is either true or false depending on whether the user cancelled taking the picture

iii) Error: Indicates if there was an error when the photo was taken

The blocks below say that when Button1 is clicked, open the camera. Then set the photo taken to be the picture displayed on the screen.