Table of Contents

Method MaaRecordControllerCreate

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

MaaRecordControllerCreate(nint, string)

Create a record controller that wraps an existing controller and records all operations.

public static nint MaaRecordControllerCreate(nint inner, string recordingPath)

Parameters

inner nint

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 MaaReplayControllerCreate.

Returns

nint

The record controller handle, or nint.Zero on failure.