BluetoothAdapter.GetProfileConnectionState(ProfileType) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
プロファイルの現在の接続状態を取得します。
[Android.Runtime.Register("getProfileConnectionState", "(I)I", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.ProfileState GetProfileConnectionState(Android.Bluetooth.ProfileType profile);
[<Android.Runtime.Register("getProfileConnectionState", "(I)I", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetProfileConnectionState : Android.Bluetooth.ProfileType -> Android.Bluetooth.ProfileState
パラメーター
- profile
- ProfileType
返品
- 属性
注釈
プロファイルの現在の接続状態を取得します。 この関数を使用すると、ローカル Bluetooth アダプターが特定のプロファイルの任意のリモート デバイスに接続されているかどうかを確認できます。 プロファイルには、BluetoothProfile#HEADSETBluetoothProfile#A2DPのいずれかを指定できます。
プロファイル接続状態を返す
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。