Table of Contents

Method WaitFreezes

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

WaitFreezes(ulong, IMaaRectBuffer?, string)

Waits for screen to stabilize (freeze).

bool WaitFreezes(ulong millisecondsTime = 0, IMaaRectBuffer? recognitionBox = null, string waitFreezesParam = "{}")

Parameters

millisecondsTime ulong

The wait time in milliseconds.

recognitionBox IMaaRectBuffer?

The recognition hit box, used when target is Self to calculate ROI.

waitFreezesParam string

The wait parameters.

Supports time, target, target_offset, threshold, method, rate_limit, timeout.

Returns

bool

true if the operation was executed successfully; otherwise, false.

Remarks

millisecondsTime and waitFreezesParam.time are mutually exclusive.

Exceptions

ArgumentNullException

WaitFreezes(TimeSpan, IMaaRectBuffer?, string)

Waits for screen to stabilize (freeze).

bool WaitFreezes(TimeSpan time = default, IMaaRectBuffer? recognitionBox = null, string waitFreezesParam = "{}")

Parameters

time TimeSpan

The wait time.

recognitionBox IMaaRectBuffer?

The recognition hit box, used when target is Self to calculate ROI.

waitFreezesParam string

The wait parameters.

Supports time, target, target_offset, threshold, method, rate_limit, timeout.

Returns

bool

true if the operation was executed successfully; otherwise, false.

Remarks

time and waitFreezesParam.time are mutually exclusive.

Exceptions

ArgumentNullException
ArgumentNullException