Method TryGetList
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
TryGetList(nint, out IList<AdbDeviceInfo>)
Gets the MaaFramework.Binding.AdbDeviceInfo list from a AdbDeviceListBuffer.
public static bool TryGetList(nint handle, out IList<AdbDeviceInfo> deviceList)Parameters
handlenint-
The AdbDeviceListBufferHandle.
deviceListIList<AdbDeviceInfo>-
The list of devices.
Returns
- bool
-
true if an empty list or each element was got successfully from the AdbDeviceListBuffer; otherwise, false.
TryGetList(out IList<AdbDeviceInfo>, Func<nint, bool>)
Gets the MaaFramework.Binding.AdbDeviceInfo list from a function using AdbDeviceListBuffer.
public static bool TryGetList(out IList<AdbDeviceInfo> deviceList, Func<nint, bool> writeBuffer)Parameters
deviceListIList<AdbDeviceInfo>-
The list of devices.
writeBufferFunc<nint, bool>-
The function used to write the device list to the list buffer.