Langue

BluetoothAdapter.GetProfileProxy Méthode

Définition

Obtenez l’objet proxy de profil associé au profil.

[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

Paramètres

context
Context

Contexte de l’application

listener
IBluetoothProfileServiceListener

Écouteur de service pour les rappels de connexion.

profile
ProfileType

Profil Bluetooth ; BluetoothProfile#HEADSETsoit , , BluetoothProfile#A2DP, BluetoothProfile#HEARING_AIDBluetoothProfile#GATTou BluetoothProfile#GATT_SERVER.

Retours

true sur la réussite, false sur l’erreur

Attributs

Remarques

Java documentation pour android.bluetooth.BluetoothAdapter.getProfileProxy(android.content.Context, android.bluetooth.ServiceListener, int).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à