IBluetoothProfile.GetDevicesMatchingConnectionStates(ProfileState[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得符合任一連線狀態的裝置清單。
[Android.Runtime.Register("getDevicesMatchingConnectionStates", "([I)Ljava/util/List;", "GetGetDevicesMatchingConnectionStates_arrayIHandler:Android.Bluetooth.IBluetoothProfileInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice>? GetDevicesMatchingConnectionStates(Android.Bluetooth.ProfileState[]? states);
[<Android.Runtime.Register("getDevicesMatchingConnectionStates", "([I)Ljava/util/List;", "GetGetDevicesMatchingConnectionStates_arrayIHandler:Android.Bluetooth.IBluetoothProfileInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDevicesMatchingConnectionStates : Android.Bluetooth.ProfileState[] -> System.Collections.Generic.IList<Android.Bluetooth.BluetoothDevice>
參數
- states
- ProfileState[]
各種狀態。 狀態可以是 #STATE_CONNECTED、 #STATE_CONNECTING、 #STATE_DISCONNECTED#STATE_DISCONNECTING, , 之一。
傳回
裝置清單。 錯誤時清單會是空的。
- 屬性
備註
取得符合任一連線狀態的裝置清單。
若沒有任何裝置符合任何給定狀態,則會回傳一個空清單。
Java 文件 android.bluetooth.BluetoothProfile.getDevicesMatchingConnectionStates(int[])。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。