toolkit

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigInitOption added in v1.0.0

func ConfigInitOption(userPath, defaultJson string) bool

ConfigInitOption inits the toolkit config option.

Types

type AdbDevice

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

AdbDevice represents a single ADB device with various properties and methods to access its information.

func (*AdbDevice) GetAdbPath added in v1.0.0

func (d *AdbDevice) GetAdbPath() string

GetAdbPath returns the device ADB path.

func (*AdbDevice) GetAddress added in v1.0.0

func (d *AdbDevice) GetAddress() string

GetAddress returns the device ADB address.

func (*AdbDevice) GetConfig added in v1.0.0

func (d *AdbDevice) GetConfig() string

GetConfig returns the device ADB config.

func (*AdbDevice) GetInputMethod added in v1.0.0

func (d *AdbDevice) GetInputMethod() maa.AdbInputMethod

GetInputMethod returns the device adb input method.

func (*AdbDevice) GetName added in v1.0.0

func (d *AdbDevice) GetName() string

GetName returns the device name.

func (*AdbDevice) GetScreencapMethod added in v1.0.0

func (d *AdbDevice) GetScreencapMethod() maa.AdbScreencapMethod

GetScreencapMethod returns the device adb screencap method.

type AdbDeviceFinder added in v1.0.0

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

AdbDeviceFinder is a struct that helps in finding ADB devices.

func NewAdbDeviceFinder added in v1.0.0

func NewAdbDeviceFinder() *AdbDeviceFinder

NewAdbDeviceFinder creates a new AdbDeviceFinder instance.

func (*AdbDeviceFinder) Destroy added in v1.0.0

func (f *AdbDeviceFinder) Destroy()

Destroy releases the AdbDeviceFinder.

func (*AdbDeviceFinder) Find added in v1.0.0

func (f *AdbDeviceFinder) Find() []*AdbDevice

Find returns a slice of all found ADB devices, or nil if the operation fails.

func (*AdbDeviceFinder) FindSpecified added in v1.0.0

func (f *AdbDeviceFinder) FindSpecified(adbPath string) []*AdbDevice

FindSpecified returns a slice of all found ADB devices with the given ADB path, or nil if the operation fails.

type DesktopWindow added in v1.0.0

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

DesktopWindow represents a single desktop window with various properties and methods to access its information.

func (*DesktopWindow) GetClassName added in v1.0.0

func (w *DesktopWindow) GetClassName() string

GetClassName returns the window class name.

func (*DesktopWindow) GetHandle added in v1.0.0

func (w *DesktopWindow) GetHandle() unsafe.Pointer

GetHandle returns the window handle.

func (*DesktopWindow) GetWindowName added in v1.0.0

func (w *DesktopWindow) GetWindowName() string

GetWindowName returns the window window name.

type DesktopWindowFinder added in v1.0.0

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

DesktopWindowFinder is a struct that helps in finding desktop windows.

func NewDesktopWindowFinder added in v1.0.0

func NewDesktopWindowFinder() *DesktopWindowFinder

NewDesktopWindowFinder creates a new DesktopWindowFinder instance.

func (*DesktopWindowFinder) Destroy added in v1.0.0

func (f *DesktopWindowFinder) Destroy()

Destroy releases the DesktopWindowFinder.

func (*DesktopWindowFinder) Find added in v1.0.0

func (f *DesktopWindowFinder) Find() []*DesktopWindow

Find returns a slice of all found desktop window, or nil if the operation fails.

type ProjectInterface added in v1.0.0

type ProjectInterface struct {
}

func NewProjectInterface added in v1.0.0

func NewProjectInterface() *ProjectInterface

NewProjectInterface creates a new ProjectInterface instance.

func (*ProjectInterface) ClearCustom added in v1.0.0

func (i *ProjectInterface) ClearCustom(instId uint64)

ClearCustom unregisters all custom recognizers and actions for a given instance.

func (*ProjectInterface) RegisterCustomAction added in v1.0.0

func (i *ProjectInterface) RegisterCustomAction(instId uint64, name string, action maa.CustomAction)

RegisterCustomAction registers a custom action.

func (*ProjectInterface) RegisterCustomRecognizer added in v1.0.0

func (i *ProjectInterface) RegisterCustomRecognizer(instId uint64, name string, recognizer maa.CustomRecognizer)

RegisterCustomRecognizer registers a custom recognizer.

func (*ProjectInterface) RunCli added in v1.0.0

func (i *ProjectInterface) RunCli(instId uint64, resourcePath, userPath string, directly bool, callback func(msg, detailsJson string)) bool

RunCli runs the PI CLI.

Jump to

Keyboard shortcuts

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