Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

Capture image

A decision block that starts a Camera app and lets the user take a picture.

The fiber will pause until the Camera app has taken a picture or the timeout expired.

If you want to take a picture without user interaction, use the Take picture block instead.

The destination path can be set to an existing or new file, or to a directory where the file will be placed with an automatic name. The path to the actual JPEG image file saved is assigned to the image file variable.

Input arguments

  • Destination path — file or directory path where the image file will be saved, default is a JPEG file in the “DCIM” directory.
  • Package — package name of the Camera app to use, default is system preferred Camera app.
  • Timeout — time until the notification/dialog is automatically canceled, may be inaccurate as it’s affected power save features such as “doze”, default is no timeout.
  • Notification channelUUID of notification channel used for shown notification, default is the flow default or Flow.
  • Show window — whether to show the dialog window directly without having to tap the notification. Requires the “appear atop of other apps or parts of the screen” privilege on Android 10+.

Output variables

  • Image file — variable to assign the path to the JPEG image file.
Note! This documentation is also accessible within the app from Help & feedback menu.