BluetoothHealth.GetConnectionState(BluetoothDevice) メソッド

定義

プロファイルの現在の接続状態を取得します。

[Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.ProfileState GetConnectionState (Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
abstract member GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState
override this.GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState

パラメーター

device
BluetoothDevice

リモート bluetooth デバイス。

戻り値

プロファイル接続の状態。 、 #STATE_CONNECTING#STATE_DISCONNECTEDのいずれか#STATE_CONNECTED#STATE_DISCONNECTING

実装

属性

注釈

android.bluetooth.BluetoothHealth.getConnectionState(android.bluetooth.BluetoothDevice)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象