What It Does#
Region(x, y, w, h) is the main entry point for this object family. Use it to understand the responsibility of the namespace before diving into the methods below it. Region manages screen scanning, image matching, and detection flow. It also behaves as a callable global factory.
When To Use It#
In detection flow, refresh the screen with Snap.screenRefresh() first, then narrow the search area and confidence using Region and FindParam. This API becomes most valuable in screen-driven decision scenarios.
Parameters and Return#
x, y, w, h define the purpose of the call; preparing them in clearly named variables before execution makes production debugging easier. This entry is a namespace or helper object overview; the real flow is built with the methods listed below it.
Best Combined With#
It is typically combined with Snap, Region, Asset, and FindParam; you can feed the result into quickTap(), click(), or a follow-up OCR step.