Step 6: Adding the Camera Component

Goal:


Next we need to add a Camera component into our app.

This is a component that will allow us to access the phone’s camera inside our program.

Note, you will not see anything change on the phone itself; however you should see the Camera component on the right side in the components list.

This is because even though this component is on our phone, it isn’t actually visible anywhere.

You can also see it under the phone in an area labeled Non-visible components.

Steps:

  1. Inside the Palette on the left side of the screen, click on Media.
  2. Drag in a Camera component anywhere into the phone.

Code:


Click to replay