Documentation
¶
Index ¶
- func ExecuteCommand(command string) ([]byte, error)
- func PairDevice(endpoint string, code string) error
- type Device
- func (d *Device) CheckAppRunning(appackage string) (bool, error)
- func (d *Device) GetAppPid(appackage string) (int, error)
- func (d *Device) GetCurrentAppPackage() (string, error)
- func (d *Device) GetScreenResolution() (int, int, error)
- func (d *Device) GetScreenState() (string, error)
- func (d *Device) GetScreenText(xStart int, xEnd int, yStart int, yEnd int, whitelist string, multiline bool, ...) (string, error)
- func (d *Device) IsConnected() bool
- func (d *Device) KillApp(appackage string) error
- func (d *Device) RunCommand(command string) ([]byte, error)
- func (d *Device) StartApp(appackage string) error
- func (d *Device) TapScreen(x int, y int) error
- func (d *Device) ToggleScreen() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommand ¶
Execute a raw adb command and return the output
func PairDevice ¶
Pair a device using the 6 digit code
Types ¶
type Device ¶
func GetConnectedDevices ¶
Get the already connected adb devices
func (*Device) CheckAppRunning ¶
Check if a app is running
func (*Device) GetCurrentAppPackage ¶
Get the current focussed app package name
func (*Device) GetScreenResolution ¶
Get the resolution of the screen
func (*Device) GetScreenState ¶
Get the state of the screen (Asleep/Awake)
func (*Device) GetScreenText ¶
func (*Device) IsConnected ¶
IsConnected checks if the device is currently connected via ADB
func (*Device) RunCommand ¶
Run a command on this specific device
func (*Device) ToggleScreen ¶
Toggle the screen by simulating a press of the power button
Click to show internal directories.
Click to hide internal directories.