언어

BluetoothHeadset.GetCodecType(BluetoothDevice) 메서드

정의

지정된 HFP 연결된 디바이스의 코덱 유형을 가져옵니다.

[Android.Runtime.Register("getCodecType", "(Landroid/bluetooth/BluetoothDevice;)I", "", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.BluetoothHeadsetCodecType GetCodecType(Android.Bluetooth.BluetoothDevice device);
[<Android.Runtime.Register("getCodecType", "(Landroid/bluetooth/BluetoothDevice;)I", "", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetCodecType : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.BluetoothHeadsetCodecType

매개 변수

device
BluetoothDevice

원격 Bluetooth 디바이스입니다. null이 아니어야 합니다.

반품

지정된 HFP 연결된 디바이스의 코덱 형식입니다. Bluetooth가 꺼져 있거나, 프로필이 연결되지 않았거나, 디바이스가 연결되지 않았거나, 코덱 협상이 완료되지 않았거나, 오류가 발생하는 경우 반환 #CODEC_TYPE_UNSUPPORTED 합니다.

특성

적용 대상