📄️ Screen
The module has similar functionality with Region module, except it uses full device width and height
📄️ Screen:click()
To perform parameterize click behaviour using MatchResult
📄️ Screen:clickAll()
To perform image/text detection and click it's match coordinate in bulk manner
📄️ Screen:exist()
To check if match exist in device screen, if match is found then this method returns true else false
📄️ Screen:existClick()
To perform image/text detection and click it's match coordinate, if match is found then this method returns true
📄️ Screen:existClickAll()
To perform image/text detection and click it's match coordinate, if match is found then this method returns true
📄️ Screen:find()
To perform image or text search in your device screen, if the image or text is found return the MatchResult else return nil
📄️ Screen:findAll()
To perform image or text search in bulk manner and return a list of MatchResult
📄️ Screen: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
📄️ Screen: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
📄️ Screen:getText()
This method performs OCR in device screen and return the concatenated text
📄️ Screen:getX()
Get the x coordinate of screen
📄️ Screen:getY()
Get the y coordinate of screen
📄️ Screen:height()
Get the height of screen
📄️ Screen:highlight()
Use for highlighting the screen
📄️ Screen:screenshot()
Take a screenshot the entire device screen and save it to /data/data/com.androidmacro/images/$macroId/$fileName
📄️ Screen:swipe()
Perform swipe behaviour to the screen
📄️ Screen:wait()
Wait until template appear in the screen, if timeout reached this method will throw an error
📄️ Screen:waitVanish()
Wait until template disappear or vanish in the screen, if timeout reached this method will throw an error
📄️ Screen:width()
Get the width of screen