Table of Contents

Class MaaOptionExtensions

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

A static class providing extension methods for setting maa option.

public static class MaaOptionExtensions

Inheritance

Inherited Members

Methods

SetInference_UseAutoExecutionProvider(IMaaOption<ResourceOption>?)

Sets inference execution provider and device.

SetInference_UseCoreML(IMaaOption<ResourceOption>?, int)

Sets inference execution provider and device.

SetInference_UseCoreML(IMaaOption<ResourceOption>?, InferenceCoreMLFlags)

Sets inference execution provider and device.

SetInference_UseCpu(IMaaOption<ResourceOption>?)

Sets inference execution provider and device.

SetInference_UseDirectML(IMaaOption<ResourceOption>?, int)

Sets inference execution provider and device.

SetInference_UseDirectML(IMaaOption<ResourceOption>?, InferenceDevice)

Sets inference execution provider and device.

SetOption_DebugMode(IMaaOption<GlobalOption>?, bool)

Whether to debug

SetOption_DrawQuality(IMaaOption<GlobalOption>?, int)

Image quality for draw images

SetOption_InferenceDevice(IMaaOption<ResourceOption>?, int)

Use the specified inference device. Please set this option before loading the model.

SetOption_InferenceDevice(IMaaOption<ResourceOption>?, InferenceDevice)

Use the specified inference device. Please set this option before loading the model.

SetOption_InferenceDevice(IMaaOption<ResourceOption>?, InferenceCoreMLFlags)

Use the specified inference device. Please set this option before loading the model.

SetOption_InferenceExecutionProvider(IMaaOption<ResourceOption>?, InferenceExecutionProvider)

Use the specified inference execution provider Please set this option before loading the model.

SetOption_LogDir(IMaaOption<GlobalOption>?, string)

Log dir

SetOption_RecoImageCacheLimit(IMaaOption<GlobalOption>?, nuint)

Recognition image cache limit

SetOption_SaveDraw(IMaaOption<GlobalOption>?, bool)

Whether to save draw

SetOption_SaveOnError(IMaaOption<GlobalOption>?, bool)

Whether to save screenshot on error

SetOption_ScreenshotTargetLongSide(IMaaOption<ControllerOption>?, int)

Only one of long and short side can be set, and the other is automatically scaled according to the aspect ratio.

SetOption_ScreenshotTargetShortSide(IMaaOption<ControllerOption>?, int)

Only one of long and short side can be set, and the other is automatically scaled according to the aspect ratio.

SetOption_ScreenshotUseRawSize(IMaaOption<ControllerOption>?, bool)

Screenshot use raw size without scaling. Please note that this option may cause incorrect coordinates on user devices with different resolutions if scaling is not performed.

SetOption_StdoutLevel(IMaaOption<GlobalOption>?, LoggingLevel)

The level of log output to stdout