Table of Contents

Constructor MaaRecordController

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

MaaRecordController(MaaController, string, LinkOption, CheckStatusOption)

Creates a MaaFramework.Binding.MaaRecordController instance.

public MaaRecordController(MaaController inner, string recordingPath, LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)

Parameters

inner MaaController

The inner controller to forward all operations to. Must not be null.

The record controller does NOT take ownership of the inner controller.

recordingPath string

Path to the recording JSONL file to write.

Screenshot images will be saved to a "{stem}-Screenshot" folder in the same directory as this file.

The recorded file can be replayed using MaaFramework.Binding.MaaReplayController.

link LinkOption

Executes MaaFramework.Binding.IMaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.

check CheckStatusOption

Checks LinkStart().Wait() status if MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not check.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaController.MaaRecordControllerCreate(System.IntPtr,System.String).

Exceptions

ArgumentNullException
ArgumentException
MaaJobStatusException