accessibility

package
v1.0.171 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 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 NewWithoutEventChangeListeners added in v1.0.171

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

NewWithoutEventChangeListeners creates and connects to the given device, a new ControlInterface instance without setting accessibility event change listeners to avoid keeping constant connection.

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) ResetToDefaultAccessibilitySettings added in v1.0.171

func (a ControlInterface) ResetToDefaultAccessibilitySettings() error

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

func (ControlInterface) UpdateAccessibilitySetting added in v1.0.122

func (a ControlInterface) UpdateAccessibilitySetting(name string, val interface{})

Jump to

Keyboard shortcuts

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