BluetoothAdapter.GetProfileProxy Método

Definição

Obtenha o objeto proxy de perfil associado ao 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 do aplicativo

listener
IBluetoothProfileServiceListener

O ouvinte de serviço para retornos de chamada de conexão.

profile
ProfileType

O perfil Bluetooth; ou BluetoothProfile#HEADSET, BluetoothProfile#A2DP, BluetoothProfile#GATTou BluetoothProfile#HEARING_AIDBluetoothProfile#GATT_SERVER.

Retornos

true no êxito, false no erro

Atributos

Comentários

Java documentação para android.bluetooth.BluetoothAdapter.getProfileProxy(android.content.Context, android.bluetooth.ServiceListener, int).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a