Wait until the UI settles
devilge_wait_for_idlePoll UI dump until consecutive identical digests are detected, absorbing animations and async updates. Use between tap and next action.
Instructions
Polls the UI dump and returns when N consecutive dumps have an identical structural digest, or the timeout elapses. Useful between a tap and the next action to absorb animations / asynchronous updates without sleeps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial. Defaults to DEVILGE_DEFAULT_DEVICE_SERIAL or the only attached device. | |
| timeoutMs | No | Max wait in ms (500..60000). Default 10000. | |
| stableSamples | No | Number of consecutive identical UI dumps to declare idle. Default 3. |