nemu

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NemuDriver

type NemuDriver struct {
	InstallDir     string
	NemuConnect    *syscall.LazyProc
	NemuDisconnect *syscall.LazyProc
	ConnectionId   int
}

func New

func New() *NemuDriver

func (*NemuDriver) ArrangeDevices

func (n *NemuDriver) ArrangeDevices()

模拟器窗口排版

func (*NemuDriver) BackToHome

func (n *NemuDriver) BackToHome(index int)

BackToHome 模拟器返回主页

func (*NemuDriver) CopyDevice

func (n *NemuDriver) CopyDevice(index int) (string, error)

CopyDevice 复制模拟器

func (*NemuDriver) CopyDevices

func (n *NemuDriver) CopyDevices(index int, count int) (string, error)

CopyDevices 批量复制模拟器

func (*NemuDriver) CreateDevice

func (n *NemuDriver) CreateDevice() (string, error)

CreateDevice 创建一个新的模拟器

func (*NemuDriver) CreateDevices

func (n *NemuDriver) CreateDevices(count int) (string, error)

CreateDevices 批量创建模拟器

func (*NemuDriver) DeleteDevice

func (n *NemuDriver) DeleteDevice(index int) (string, error)

DeleteDevice 删除模拟器

func (*NemuDriver) DiskClear

func (n *NemuDriver) DiskClear(index string, pid int)

DiskClear 清理磁盘

func (*NemuDriver) GetAppInfo

func (n *NemuDriver) GetAppInfo(index int, packageName string) (string, error)

GetAppInfo 指定模拟器上查询应用信息

func (*NemuDriver) GetDeviceStatus

func (n *NemuDriver) GetDeviceStatus(index int) (string, error)

GetDeviceStatus 查询单个模拟器状态信息

func (*NemuDriver) GetDevicesStatus

func (n *NemuDriver) GetDevicesStatus() (string, error)

GetDevicesStatus 查询所有模拟器状态信息

func (*NemuDriver) GoBack

func (n *NemuDriver) GoBack(index int)

GoBack 模拟器返回操作

func (*NemuDriver) RenameDevice

func (n *NemuDriver) RenameDevice(index int, name string) (string, error)

重命名模拟器

func (*NemuDriver) RestartDeviceByIndex

func (n *NemuDriver) RestartDeviceByIndex(index int)

RestartDeviceByIndex 重启指定模拟器

func (*NemuDriver) RotateScreen

func (n *NemuDriver) RotateScreen(index int)

RotateScreen 模拟器屏幕旋转

func (*NemuDriver) Shake

func (n *NemuDriver) Shake(index int)

Shake 模拟器摇一摇

func (*NemuDriver) StartAllDevices

func (n *NemuDriver) StartAllDevices()

启动所有模拟器

func (*NemuDriver) StartApp

func (n *NemuDriver) StartApp(index int, packageName string)

StartApp 启动模拟器里的应用

func (*NemuDriver) StartAppOnAllDevices

func (n *NemuDriver) StartAppOnAllDevices(packageName string)

在所有模拟器上启动应用

func (*NemuDriver) StartDevice

func (n *NemuDriver) StartDevice(index int)

StartDevice 启动设备

func (*NemuDriver) StartDeviceByIndex

func (n *NemuDriver) StartDeviceByIndex(index int)

StartDeviceByIndex 启动指定模拟器

func (*NemuDriver) StopAllDevices

func (n *NemuDriver) StopAllDevices()

StopAllDevices 停止所有模拟器

func (*NemuDriver) StopApp

func (n *NemuDriver) StopApp(index int, packageName string)

StopApp 停止模拟器里的应用

func (*NemuDriver) StopAppOnAllDevices

func (n *NemuDriver) StopAppOnAllDevices(packageName string)

StopAppOnAllDevices 在所有模拟器上停止应用

func (*NemuDriver) StopDeviceByIndex

func (n *NemuDriver) StopDeviceByIndex(index int)

StopDeviceByIndex 停止指定模拟器

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL