Language

BluetoothLeAudio.GetDevicesMatchingConnectionStates(ProfileState[]) Method

Definition

Get a list of devices that match any of the given connection states.

[Android.Runtime.Register("getDevicesMatchingConnectionStates", "([I)Ljava/util/List;", "", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice> GetDevicesMatchingConnectionStates(Android.Bluetooth.ProfileState[] states);
[<Android.Runtime.Register("getDevicesMatchingConnectionStates", "([I)Ljava/util/List;", "", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
abstract member GetDevicesMatchingConnectionStates : Android.Bluetooth.ProfileState[] -> System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice>
override this.GetDevicesMatchingConnectionStates : Android.Bluetooth.ProfileState[] -> System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice>

Parameters

states
ProfileState[]

The connection-state codes to match; a device can match any one of these states.

Returns

Devices whose profile connection state matches one of the supplied states; an empty list if no matches can be returned.

Implements

Attributes

Remarks

Get a list of devices that match any of the given connection states.

Java documentation for android.bluetooth.BluetoothLeAudio.getDevicesMatchingConnectionStates(int[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to