Add a Camera Component to a Page
When you want your App UI to access the camera capabilities of the devices on which it is installed, you can add the camera component to your App UI's page for users to take a photo or a video from the device's camera.
The camera capture works only on physical devices that actually support media captures. On other devices (like desktops), it works as a regular file picker that lets users select files from the device's storage.
- Open the page in the Page Designer and drag the camera component from the Components palette onto the page canvas.
- In the General tab of the Properties pane, configure the component's properties for your use case:
- In the Events tab of the Properties pane, configure the camera component's
Selected Files
event to trigger an action chain when a user selects the camera component. Make sure to select the Camera (File Picker) component, not the button component within the camera component. - Click Preview to test the camera functionality.