言語

BluetoothCsipSetCoordinator.GetConnectionState(BluetoothDevice) メソッド

定義

Build.VERSION_CODESを対象とするアプリのプロファイルの現在の接続状態を取得します。S 以降では、android.app.Activity.requestPermissions(String[],int) で取得できるManifest.permission.BLUETOOTH_CONNECTアクセス許可が必要です。

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

パラメーター

返品

値は次のいずれかです: BluetoothProfile.STATE_DISCONNECTED;BluetoothProfile.STATE_CONNECTING;BluetoothProfile.STATE_CONNECTED;BluetoothProfile.STATE_DISCONNECTING

実装

属性

注釈

Build.VERSION_CODESを対象とするアプリのプロファイルの現在の接続状態を取得します。S 以降では、android.app.Activity.requestPermissions(String[],int) で取得できるManifest.permission.BLUETOOTH_CONNECTアクセス許可が必要です。 Manifest.permission.BLUETOOTH_CONNECTとManifest.permission.BLUETOOTH_PRIVILEGEDが必要

Javaドキュメント。

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

適用対象