airtest.core.android.touch_methods.maxtouch module

class Maxtouch(adb, backend=False, size_info=None, input_event=None)[源代码]

基类:BaseTouch

install()[源代码]

Install maxtouch

返回:

None

uninstall()[源代码]

Uninstall maxtouch

返回:

None

setup_server()[源代码]

Setup maxtouch server and adb forward

返回:

server process

setup_client()[源代码]

Setup client

返回:

None

transform_xy(x, y)[源代码]

Normalized coordinates (x, y)

参数:
  • x – coordinate x

  • y – coordinate y

返回:

transformed coordinates (x, y)

teardown()[源代码]

Stop the server and client

返回:

None