BluetoothAdapter.GetProfileProxy Método

Definición

Obtenga el objeto proxy de perfil asociado al perfil.

[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

Parámetros

context
Context

Contexto de la aplicación

listener
IBluetoothProfileServiceListener

Agente de escucha de servicio para devoluciones de llamada de conexión.

profile
ProfileType

El perfil bluetooth; ya sea BluetoothProfile#HEADSET, BluetoothProfile#A2DP, BluetoothProfile#HEARING_AIDBluetoothProfile#GATTo BluetoothProfile#GATT_SERVER.

Devoluciones

true si se ha realizado correctamente, false en caso de error

Atributos

Comentarios

Java documentación para android.bluetooth.BluetoothAdapter.getProfileProxy(android.content.Context, android.bluetooth.ServiceListener, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a