Table of Contents

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

handle nint

The AdbDeviceListBufferHandle.

deviceList IList<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

deviceList IList<AdbDeviceInfo>

The list of devices.

writeBuffer Func<nint, bool>

The function used to write the device list to the list buffer.

Returns

bool

true if an empty list or each element was got successfully from the AdbDeviceListBuffer; otherwise, false.