📄️ Region()
The core module for detecting and performing ui automation in a region of interest which is a part of screen device
📄️ Region():click()
To perform parameterize click behaviour using MatchResult
📄️ Region():clickAll()
To perform image/text detection and click it's match coordinate in bulk manner
📄️ Region():exist()
To check if match exist in the region, if match is found then this method returns true else false
📄️ Region():existClick()
To perform image/text detection and click it's match coordinate, if match is found then this method returns true
📄️ Region():existClickAll()
To perform image/text detection and click it's match coordinate, if match is found then this method returns true
📄️ Region():find()
To perform image or text search in the region, if the image or text is found return the MatchResult else return nil
📄️ Region():findAll()
To perform image or text search in bulk manner and return a list of MatchResult
📄️ Region():getColor()
To get color pixel in certain coordinate, later this color can be used to compare if color has similar score, this is useful to do color detection
📄️ Region():getColors()
To get color pixel in multiple coordinates at the same time, later these colors can be used to compare if color has similar score, this is useful to do color detection
📄️ Region():getText()
This method performs OCR in region of interest and return the concatenated text
📄️ Region():getX()
Get the x coordinate of region
📄️ Region():getY()
Get the y coordinate of region
📄️ Region():height()
Get the height of region
📄️ Region():highlight()
Use for highlighting the region
📄️ Region():screenshot()
Take a screenshot of region and save it to /data/data/com.androidmacro/images/$macroId/$fileName
📄️ Region():swipe()
Perform swipe behaviour to the specific region
📄️ Region():wait()
Wait until template appear in the region, if timeout reached this method will throw an error
📄️ Region():waitVanish()
Wait until template disappear or vanish in the region, if timeout reached this method will throw an error
📄️ Region():width()
Get the width of region