MCPcopy
hub / github.com/AirtestProject/Poco / default_device

Function default_device

poco/utils/device.py:25–34  ·  view source on GitHub ↗

Get default device, if no device connected, connect to first android device. :return:

()

Source from the content-addressed store, hash-verified

23
24
25def default_device():
26 """
27 Get default device, if no device connected, connect to first android device.
28
29 :return:
30 """
31 try:
32 return current_device()
33 except NoDeviceError:
34 return connect_device('Android:///')

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected