Take Photo
Opens the camera to take a photo.
Category: Device · Can fail (wrap it in Try to handle that) · Takes time: the next step waits for it
#When to use it
Use it to take a new photo with the camera: a receipt, a damaged item, a profile picture.
#Example
A Scan receipt button: Take Photo with Into: receipt. An Image linked to receipt shows it.
#Good to know
- It needs the camera. The first time, your app shows the reason you wrote under Data & Logic → Permissions, then iPadOS asks. If the camera is turned off for PadCode, the step fails and says to turn it on in Settings → PadCode.
- On a device without a camera, like the Simulator, the step fails.
- If the person closes the camera without taking a photo, the run stops quietly.
- The photo is kept as a JPEG picture, at most 1600 pixels on its longest side.
#Add it
Select a view, open the Inspector's Actions tab, pick when it runs, tap Add action and choose Take Photo (under Device). Tap the step to open its settings.
#Settings
| Setting | What it does | Kind | Default |
|---|---|---|---|
| Into | Where to save the photo. | Variable | Required |
#What it gives back
A photo an Image can show.