-
Notifications
You must be signed in to change notification settings - Fork 0
API Utils
The Vector2 class is a container for x and y coordinates. It has some methods to support math operation.
Creates a new vector2 instance with the x and y value
Adds a vector to this instance. Returns a new instance
Subtract a vector from this instance. Returns a new instance
Divide the current vector by the number value. Returns a new instance with the values.
Get the x of this instance
Get y value of this instance
Set the x value for this instance
Set the y value for this instance
Creates a new bounds instance with the min x and y and max x and y values
Get the center in the bounds
Get the min value of the bounds instance
Get the max value of the bounds instance
This is a interface containing stdout and stderr
Runs a command in the command line as a promise and returns a ExecResult
Returns a promise that completes after the given ms.
Returns a promise that checks the condition callback in the given interval timeout. When the condition is met, the promise will resolve
Waits until the device's hierarchy contains the provided xPath
Waits until the device's hierarchy contains the provided id node
Waits until the device's hierarchy contains the provided text node
Waits until the device's hierarchy contains the provided className node