Method ToAdbControllerWith
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
ToAdbControllerWith(AdbDeviceInfo, string?, string?, AdbScreencapMethods?, AdbInputMethods?, string?, string?, LinkOption, CheckStatusOption)
Converts a MaaFramework.Binding.AdbDeviceInfo to a MaaFramework.Binding.MaaAdbController.
public static MaaAdbController ToAdbControllerWith(this AdbDeviceInfo info, string? adbPath = null, string? adbSerial = null, AdbScreencapMethods? screencapMethods = null, AdbInputMethods? inputMethods = null, string? config = null, string? agentPath = null, LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)Parameters
infoAdbDeviceInfo-
The AdbDeviceInfo.
adbPathstring?-
The new adb path.
adbSerialstring?-
The new adb serial.
screencapMethodsAdbScreencapMethods?-
The screencap methods.
inputMethodsAdbInputMethods?-
The input methods.
configstring?-
The new adb config.
agentPathstring?-
The new path of agent directory. Default is "./MaaAgentBinary" if package "Maa.Framework" or "Maa.AgentBinary" is used.
linkLinkOption-
Executes MaaFramework.Binding.MaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.
checkCheckStatusOption-
Checks LinkStart().Wait() status if MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not check.
Returns
- MaaAdbController
-
A MaaAdbController.