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(MaaController, MaaResource, 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.

Instances

Gets all maa tasker instances.

IsInitialized

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

IsRunning

Gets whether the MaaFramework.Binding.IMaaTasker is running.

IsStopping

Gets whether the MaaFramework.Binding.IMaaTasker is stopping.

Resource

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

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.

AppendTask(string, string)

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

ClearCache()

Clear the runtime cache.

Dispose(bool)

Releases all resources from MaaFramework.

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, IMaaImageBuffer?, IMaaListBuffer<T>?)

Gets the recognition detail.

GetRecognitionDetail(long, out string, out string, out bool, MaaRectBuffer?, out string, MaaImageBuffer?, MaaImageListBuffer?)
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.

Stop()

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

Wait(MaaJob)

Waits a MaaFramework.Binding.MaaJob.