Table of Contents

Method MaaAndroidNativeControllerCreate

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

MaaAndroidNativeControllerCreate(string)

Create an Android native controller.

public static nint MaaAndroidNativeControllerCreate(string configJson)

Parameters

configJson string

JSON config for the control unit. Required fields:

- library_path: path to the Android native control unit library

- screen_resolution.width / screen_resolution.height: raw screenshot and touch resolution

Optional fields:

- display_id: target display id, defaults to 0

- force_stop: whether to force stop before start_app, defaults to false

Returns

nint

The controller handle, or nint.Zero on failure.

Remarks

This controller is only available on Android.

The configured screen_resolution must match the control unit's raw screenshot/touch coordinate space.