BluetoothAdapter.GetProfileProxy メソッド

定義

プロファイルに関連付けられているプロファイル プロキシ オブジェクトを取得します。

[Android.Runtime.Register("getProfileProxy", "(Landroid/content/Context;Landroid/bluetooth/BluetoothProfile$ServiceListener;I)Z", "")]
public bool GetProfileProxy(Android.Content.Context? context, Android.Bluetooth.IBluetoothProfileServiceListener? listener, Android.Bluetooth.ProfileType profile);
[<Android.Runtime.Register("getProfileProxy", "(Landroid/content/Context;Landroid/bluetooth/BluetoothProfile$ServiceListener;I)Z", "")>]
member this.GetProfileProxy : Android.Content.Context * Android.Bluetooth.IBluetoothProfileServiceListener * Android.Bluetooth.ProfileType -> bool

パラメーター

context
Context

アプリケーションのコンテキスト

listener
IBluetoothProfileServiceListener

接続コールバックのサービス リスナー。

profile
ProfileType

Bluetooth プロファイル。 BluetoothProfile#HEADSETBluetoothProfile#A2DPBluetoothProfile#GATTBluetoothProfile#HEARING_AID 、または BluetoothProfile#GATT_SERVER

返品

成功した場合は true、エラーの場合は false

属性

注釈

Javaドキュメント。

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

適用対象