語言

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、 DisconnectedDisconnecting, , 之一。

傳回

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

實作

屬性

備註

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

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

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

適用於