共用方式為


IBluetoothProfile.GetConnectionState(BluetoothDevice) 方法

定義

取得配置檔的目前連線狀態

[Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "GetGetConnectionState_Landroid_bluetooth_BluetoothDevice_Handler:Android.Bluetooth.IBluetoothProfileInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Bluetooth.ProfileState GetConnectionState (Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "GetGetConnectionState_Landroid_bluetooth_BluetoothDevice_Handler:Android.Bluetooth.IBluetoothProfileInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState

參數

device
BluetoothDevice

遠端藍牙裝置。

傳回

配置檔連線的狀態。 的#STATE_CONNECTED其中一個、、#STATE_CONNECTING#STATE_DISCONNECTED#STATE_DISCONNECTING

屬性

備註

android.bluetooth.BluetoothProfile.getConnectionState(android.bluetooth.BluetoothDevice)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於