Documentation
¶
Index ¶
- type NemuDriver
- func (n *NemuDriver) ArrangeDevices()
- func (n *NemuDriver) BackToHome(index int)
- func (n *NemuDriver) CopyDevice(index int) (string, error)
- func (n *NemuDriver) CopyDevices(index int, count int) (string, error)
- func (n *NemuDriver) CreateDevice() (string, error)
- func (n *NemuDriver) CreateDevices(count int) (string, error)
- func (n *NemuDriver) DeleteDevice(index int) (string, error)
- func (n *NemuDriver) DiskClear(index string, pid int)
- func (n *NemuDriver) GetAppInfo(index int, packageName string) (string, error)
- func (n *NemuDriver) GetDeviceStatus(index int) (string, error)
- func (n *NemuDriver) GetDevicesStatus() (string, error)
- func (n *NemuDriver) GoBack(index int)
- func (n *NemuDriver) RenameDevice(index int, name string) (string, error)
- func (n *NemuDriver) RestartDeviceByIndex(index int)
- func (n *NemuDriver) RotateScreen(index int)
- func (n *NemuDriver) Shake(index int)
- func (n *NemuDriver) StartAllDevices()
- func (n *NemuDriver) StartApp(index int, packageName string)
- func (n *NemuDriver) StartAppOnAllDevices(packageName string)
- func (n *NemuDriver) StartDevice(index int)
- func (n *NemuDriver) StartDeviceByIndex(index int)
- func (n *NemuDriver) StopAllDevices()
- func (n *NemuDriver) StopApp(index int, packageName string)
- func (n *NemuDriver) StopAppOnAllDevices(packageName string)
- func (n *NemuDriver) StopDeviceByIndex(index int)
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) 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) 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) RenameDevice ¶
func (n *NemuDriver) RenameDevice(index int, name string) (string, error)
重命名模拟器
func (*NemuDriver) RestartDeviceByIndex ¶
func (n *NemuDriver) RestartDeviceByIndex(index int)
RestartDeviceByIndex 重启指定模拟器
func (*NemuDriver) StartApp ¶
func (n *NemuDriver) StartApp(index int, packageName string)
StartApp 启动模拟器里的应用
func (*NemuDriver) StartAppOnAllDevices ¶
func (n *NemuDriver) StartAppOnAllDevices(packageName string)
在所有模拟器上启动应用
func (*NemuDriver) StartDeviceByIndex ¶
func (n *NemuDriver) StartDeviceByIndex(index int)
StartDeviceByIndex 启动指定模拟器
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 停止指定模拟器
Click to show internal directories.
Click to hide internal directories.