Language

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 プロファイル識別子。

戻り値

値は、 Disconnected; Connecting; Connectedのいずれかです。 Disconnecting

属性

注釈

プロファイルの現在の接続状態を取得します。 この関数を使用すると、ローカル Bluetooth アダプターが特定のプロファイルの任意のリモート デバイスに接続されているかどうかを確認できます。 プロファイルには、HeadsetA2dpのいずれかを指定できます。

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

android.bluetooth.BluetoothAdapter.getProfileConnectionStateの Android リファレンス。

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

適用対象