Table of Contents

Method TryGetList

Namespace
MaaFramework.Binding.Buffers
Assembly
MaaFramework.Binding.dll

TryGetList(THandle, out IList<AdbDeviceInfo>)

Gets the MaaFramework.Binding.AdbDeviceInfo list from a AdbDeviceListBuffer.

public static abstract bool TryGetList(THandle handle, out IList<AdbDeviceInfo> deviceList)

Parameters

handle THandle

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<THandle, bool>)

Gets the MaaFramework.Binding.AdbDeviceInfo list from a function using AdbDeviceListBuffer.

public static abstract bool TryGetList(out IList<AdbDeviceInfo> deviceList, Func<THandle, bool> writeBuffer)

Parameters

deviceList IList<AdbDeviceInfo>

The list of devices.

writeBuffer Func<THandle, 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.