BluetoothCsipSetCoordinator.GetConnectionState(BluetoothDevice) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
パラメーター
- device
- BluetoothDevice
返品
値は次のいずれかです: 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が必要
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。