語言

BluetoothHidDevice.GetDevicesMatchingConnectionStates(ProfileState[]) 方法

定義

取得符合任一連線狀態的裝置清單。

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

各種狀態。 州可以是BluetoothProfile.STATE_CONNECTED、BluetoothProfile.STATE_CONNECTING、BluetoothProfile.STATE_DISCONNECTED、BluetoothProfile.STATE_DISCONNECTING,

傳回

連線狀態與所請求狀態相符的裝置。

實作

屬性

備註

取得符合任一連線狀態的裝置清單。

Java 文件 android.bluetooth.BluetoothHidDevice.getDevicesMatchingConnectionStates(int[])。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於