accessibility

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface struct {
	// contains filtered or unexported fields
}

ControlInterface provides a simple interface to controlling the AX service on the device It only needs the global dtx channel as all AX methods are invoked on it.

func New

func New(device ios.DeviceEntry) (ControlInterface, error)

New creates and connects to the given device, a new ControlInterface instance

func (ControlInterface) EnableSelectionMode

func (a ControlInterface) EnableSelectionMode()

EnableSelectionMode enables the UI element selection mode on the device, it is the same as clicking the little crosshair in AX Inspector

func (ControlInterface) GetElement

func (a ControlInterface) GetElement()

GetElement moves the green selection rectangle one element further

func (ControlInterface) SwitchToDevice

func (a ControlInterface) SwitchToDevice()

SwitchToDevice is the same as switching to the Device in AX inspector. After running this, notifications and events should be received.

func (ControlInterface) TurnOff

func (a ControlInterface) TurnOff()

TurnOff disable AX

Jump to

Keyboard shortcuts

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