def click_long_on_screen(self, x, y): """ Long clicks the specified coordinates. :param x: the x coordinate :param y: the y coordinate """ return call(self, "clickLongOnScreen", RemoteObject.from_float(x), RemoteObject.from_float(y))
def drag(self, from_x, to_x, from_y, to_y, step_count): """ Simulate touching the specified location and dragging it to a new location. :param from_x : x coordinate of the initial touch, in screen coordinates :param to_x : x coordinate of the drag destination, in screen coordinates :param from_y : y coordinate of the initial touch, in screen coordinates :param to_y : y coordinate of the drag destination, in screen coordinates :param step_count : how many move steps to include in the drag. Less steps results in a faster drag """ return call(self, "drag", RemoteObject.from_float(from_x), RemoteObject.from_float(to_x), RemoteObject.from_float(from_y), RemoteObject.from_float(to_y), step_count)