BluetoothManager.GetConnectionState(BluetoothDevice, ProfileType) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
リモート デバイスへのプロファイルの現在の接続状態を取得します。
[Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;I)I", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.ProfileState GetConnectionState(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.ProfileType profile);
[<Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;I)I", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetConnectionState : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileType -> Android.Bluetooth.ProfileState
パラメーター
- device
- BluetoothDevice
リモート Bluetooth デバイス。
- profile
- ProfileType
GATT またはGATT_SERVER
返品
プロファイル接続の状態。
BluetoothProfile#STATE_CONNECTED、BluetoothProfile#STATE_CONNECTING、BluetoothProfile#STATE_DISCONNECTED、BluetoothProfile#STATE_DISCONNECTING
- 属性
注釈
リモート デバイスへのプロファイルの現在の接続状態を取得します。
これは、どのアプリケーション構成にも固有ではありませんが、特定のプロファイルのローカル Bluetooth アダプターの接続状態を表します。 これは、Bluetoothの状態を知りたいステータス バーなどのアプリケーションで使用できます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。