Language

BluetoothHeadset.GetDevicesMatchingConnectionStates(ProfileState[]) メソッド

定義

特定の接続状態のいずれかに一致するデバイスの一覧を取得します。

[Android.Runtime.Register("getDevicesMatchingConnectionStates", "([I)Ljava/util/List;", "")]
[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;", "")>]
[<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>

パラメーター

states
ProfileState[]

状態の配列。 状態は、 Connected、 Connecting、 Disconnected、 Disconnecting、

返品

デバイスの一覧。 エラーが発生すると、リストは空になります。

実装

属性

注釈

特定の接続状態のいずれかに一致するデバイスの一覧を取得します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象