Constructor MaaAdbController
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
MaaAdbController(AdbDeviceInfo, string, LinkOption, CheckStatusOption)
Creates a MaaFramework.Binding.MaaAdbController instance.
public MaaAdbController(AdbDeviceInfo adbDevice, string agentPath = "./MaaAgentBinary", LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)Parameters
adbDeviceAdbDeviceInfo-
The adb device info.
agentPathstring-
The path of agent directory. Default is "./MaaAgentBinary" if package "Maa.Framework" or "Maa.AgentBinary" is used.
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.MaaAdbControllerCreate(System.String,System.String,System.UInt64,System.UInt64,System.String,System.String,MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).
Exceptions
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
adbPathstring-
The path of adb executable file.
adbSerialstring-
The adb serial.
screencapMethodsAdbScreencapMethods-
The screencap methods.
inputMethodsAdbInputMethods-
The input methods.
configstring-
The adb config.
agentPathstring-
The path of agent directory. Default is "./MaaAgentBinary" if package "Maa.Framework" or "Maa.AgentBinary" is used.
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.MaaAdbControllerCreate(System.String,System.String,System.UInt64,System.UInt64,System.String,System.String,MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).