BluetoothManager.GetDevicesMatchingConnectionStates Method

Definition

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

[Android.Runtime.Register("getDevicesMatchingConnectionStates", "(I[I)Ljava/util/List;", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice>? GetDevicesMatchingConnectionStates (Android.Bluetooth.ProfileType profile, int[]? states);
[<Android.Runtime.Register("getDevicesMatchingConnectionStates", "(I[I)Ljava/util/List;", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetDevicesMatchingConnectionStates : Android.Bluetooth.ProfileType * int[] -> System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice>

Parameters

profile
ProfileType

GATT or GATT_SERVER

states
Int32[]

Array of states. States can be one of BluetoothProfile#STATE_CONNECTED, BluetoothProfile#STATE_CONNECTING, BluetoothProfile#STATE_DISCONNECTED, BluetoothProfile#STATE_DISCONNECTING,

Returns

List of devices. The list will be empty on error.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothManager.getDevicesMatchingConnectionStates(int, 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