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#A2DP, BluetoothProfile#GATTBluetoothProfile#HEARING_AID 또는 BluetoothProfile#GATT_SERVER.

반품

성공시 true, 오류 발생시 false

특성

설명

에 대한 android.bluetooth.BluetoothAdapter.getProfileProxy(android.content.Context, android.bluetooth.ServiceListener, int)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상