Constructor MaaAdbController
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
MaaAdbController(string, string, AdbScreencapMethods, AdbInputMethods, string, string, LinkOption, CheckStatusOption)
Creates a MaaFramework.Binding.MaaAdbController instance.
public MaaAdbController(string adbPath, string adbSerial, AdbScreencapMethods screencapMethods, AdbInputMethods inputMethods, string config, string agentPath = "./MaaAgentBinary", LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)
Parameters
adbPath
string-
The path of adb executable file.
adbSerial
string-
The adb serial.
screencapMethods
AdbScreencapMethods-
The screencap methods.
inputMethods
AdbInputMethods-
The input methods.
config
string-
The path of adb config file.
agentPath
string-
The path of agent directory. Default is "./MaaAgentBinary" if package "Maa.Framework" or "Maa.AgentBinary" is used.
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.MaaAdbControllerCreate(System.String,System.String,System.UInt64,System.UInt64,System.String,System.String,MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).