BluetoothAdapter.GetProfileConnectionState(ProfileType) メソッド

定義

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

[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のいずれかを指定できます。

プロファイル接続状態を返す

Javaドキュメント。

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

適用対象