Table of Contents

Class MaaTasker

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

A wrapper class providing a reference implementation for MaaFramework.Binding.Interop.Native.MaaTasker.

public class MaaTasker : MaaCommon, IMaaTasker<nint>, IMaaTasker, IMaaCommon, IMaaOption<TaskerOption>, IMaaPost, IMaaDisposableHandle<nint>, IMaaDisposable, IDisposable

Inheritance

Implements

Inherited Members

Constructors

MaaTasker(bool)

Creates a MaaFramework.Binding.MaaTasker instance.

MaaTasker(IMaaController<nint>, IMaaResource<nint>, DisposeOptions, bool)

Creates a MaaFramework.Binding.MaaTasker instance.

Properties

Controller

Gets or sets a controller that binds to the MaaFramework.Binding.IMaaTasker.

DisposeOptions

Gets or sets whether disposes the MaaFramework.Binding.IMaaTasker.Resource or the MaaFramework.Binding.IMaaTasker.Controller when System.IDisposable.Dispose was invoked.

Initialized

Gets whether the MaaFramework.Binding.IMaaTasker is fully initialized.

Instances

Gets all maa tasker instances.

Resource

Gets or sets a resource that binds to the MaaFramework.Binding.IMaaTasker.

Running

Gets whether the MaaFramework.Binding.IMaaTasker is running.

Toolkit

Gets or sets a toolkit.

Utility

Gets or sets a utility.

Methods

Abort()

Stops all appended tasks, the MaaFramework.Binding.IMaaResource and the MaaFramework.Binding.IMaaController.

AppendPipeline(string, string)

Appends a job of executing a pipeline, could be called multiple times.

ClearCache()

Clear the runtime cache.

GetLatestNode(string, out long)

Gets the latest node.

GetNodeDetail(long, out string, out long, out bool)

Gets the node detail.

GetRecognitionDetail<T>(long, out string, out string, out bool, IMaaRectBuffer?, out string, T?, IMaaListBuffer<T>?)

Gets the recognition detail.

GetStatus(MaaJob)

Gets the current status of a MaaFramework.Binding.MaaJob.

GetTaskDetail(long, out string, out long[], out MaaJobStatus)

Gets the task detail.

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

SetOption<T>(TaskerOption, T)

Sets value to an option.

Wait(MaaJob)

Waits a MaaFramework.Binding.MaaJob.