Endpoint
Overview
Watches each phone until a condition holds ortimeoutSeconds 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
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.The longest to wait, from
0 to 120 seconds (never past the request’s time limit). 0 checks once.Response
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.