Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceInfoService ¶ added in v1.0.7
type DeviceInfoService struct {
// contains filtered or unexported fields
}
DeviceInfoService gives us access to retrieving process lists and resolving names for PIDs
func NewDeviceInfoService ¶ added in v1.0.7
func NewDeviceInfoService(device ios.DeviceEntry) (*DeviceInfoService, error)
NewDeviceInfoService creates a new DeviceInfoService for a given device
func (*DeviceInfoService) Close ¶ added in v1.0.7
func (d *DeviceInfoService) Close()
Close closes up the DTX connection
func (DeviceInfoService) NameForPid ¶ added in v1.0.7
func (p DeviceInfoService) NameForPid(pid uint64) error
NameForPid resolves a process name for a given pid
func (DeviceInfoService) ProcessList ¶ added in v1.0.7
func (p DeviceInfoService) ProcessList() ([]ProcessInfo, error)
ProcessList returns a []ProcessInfo, one for each process running on the iOS device
type ProcessControl ¶
type ProcessControl struct {
// contains filtered or unexported fields
}
func NewProcessControl ¶
func NewProcessControl(device ios.DeviceEntry) (*ProcessControl, error)
func (*ProcessControl) Close ¶
func (p *ProcessControl) Close()
func (ProcessControl) KillProcess ¶
func (p ProcessControl) KillProcess(pid uint64) error
KillProcess kills the process on the device.
func (*ProcessControl) LaunchApp ¶
func (p *ProcessControl) LaunchApp(bundleID string) (uint64, error)
LaunchApp launches the app with the given bundleID on the given device.LaunchApp Use LaunchAppWithArgs for passing arguments and envVars. It returns the PID of the created app process.
func (ProcessControl) StartProcess ¶
func (p ProcessControl) StartProcess(bundleID string, envVars map[string]interface{}, arguments []interface{}, options map[string]interface{}) (uint64, error)
StartProcess launches an app on the device using the bundleID and optional envvars, arguments and options. It returns the PID.