Endpoint

Overview

Watches each phone until a condition holds or timeoutSeconds pass, then answers met and how long it waited. One request instead of a loop of screenshots: region limits a text or label condition to part of the screen ([x0, y0, x1, y1], fractions 0 to 1). It is cheap: a frame that looks the same as the one before is not read again, stable reads no text, and app takes no screenshot. Requires an active session on each phone. Platforms: Android, iPhone (app is Android only).

Request Body

string[]
required
The phones to watch.
string
One phone, instead of phoneIds. The answer’s data is then that phone’s result itself, not a list, and a failure on the phone is the request’s ok: false with the phone’s error (at the HTTP status of its code). Give phoneId or phoneIds, not both.
object
required
The condition. Exactly one of text, textGone, label, stable or app.
number
default:"20"
The longest to wait, from 0 to 120 seconds (never past the request’s time limit). 0 checks once.
object
Also return the last screen the hub looked at, as screen, read with these fields.

Response

boolean
true when the request was carried out. Check each result for how it went on that phone.
Result[]
One Result per phone, in the order of phoneIds. A condition that did not hold in time is still a successful result, with met: false.

Phone Errors