語言

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

屬性

備註

取得該設定檔目前的連線狀態

Java 文件 android.bluetooth.BluetoothProfile.getConnectionState(android.bluetooth.BluetoothDevice)。

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

適用於