Table of Contents

Method SetOptionRecording

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetOptionRecording(IMaaOption<ControllerOption>?, bool)

Sets value to an option.

public static bool SetOptionRecording(this IMaaOption<ControllerOption>? opt, bool value)

Parameters

opt IMaaOption<ControllerOption>?

The option.

value bool

The value.

Returns

bool

true if the option was set successfully; otherwise, false.

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.

SetOptionRecording(IMaaOption<GlobalOption>?, bool)

Sets value to an option.

public static bool SetOptionRecording(this IMaaOption<GlobalOption>? opt, bool value)

Parameters

opt IMaaOption<GlobalOption>?

The option.

value bool

The value.

Returns

bool

true if the option was set successfully; otherwise, false.

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.