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
innerMaaController-
The inner controller to forward all operations to. Must not be null.
The record controller does NOT take ownership of the inner controller.
recordingPathstring-
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.
linkLinkOption-
Executes MaaFramework.Binding.IMaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.
checkCheckStatusOption-
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).