語言

BluetoothGattServer.GetDevicesMatchingConnectionStates(ProfileState[]) 方法

定義

不支援——請先用BluetoothManager#getDevicesMatchingConnectionStates(int, int[])BluetoothProfile#GATT

[Android.Runtime.Register("getDevicesMatchingConnectionStates", "([I)Ljava/util/List;", "")]
public System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice>? GetDevicesMatchingConnectionStates(Android.Bluetooth.ProfileState[] states);
[<Android.Runtime.Register("getDevicesMatchingConnectionStates", "([I)Ljava/util/List;", "")>]
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、 DisconnectedDisconnecting, , 之一。

傳回

裝置清單。 錯誤時清單會是空的。

實作

屬性

例外狀況

備註

不支援——請先用BluetoothManager#getDevicesMatchingConnectionStates(int, int[])BluetoothProfile#GATT

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

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

適用於