Documentation
¶
Index ¶
- func ConfigInitOption(userPath, defaultJson string) bool
- type AdbDevice
- type AdbDeviceFinder
- type DesktopWindow
- type DesktopWindowFinder
- type ProjectInterface
- func (i *ProjectInterface) ClearCustom(instId uint64)
- func (i *ProjectInterface) RegisterCustomAction(instId uint64, name string, action maa.CustomAction)
- func (i *ProjectInterface) RegisterCustomRecognizer(instId uint64, name string, recognizer maa.CustomRecognizer)
- func (i *ProjectInterface) RunCli(instId uint64, resourcePath, userPath string, directly bool, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigInitOption ¶ added in v1.0.0
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
GetAdbPath returns the device ADB path.
func (*AdbDevice) GetAddress ¶ added in v1.0.0
GetAddress returns the device ADB address.
func (*AdbDevice) GetInputMethod ¶ added in v1.0.0
func (d *AdbDevice) GetInputMethod() maa.AdbInputMethod
GetInputMethod returns the device adb input method.
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.