Lingua

BluetoothHeadset.GetCodecType(BluetoothDevice) Method

Definition

Get the codec type of the given HFP connected device.

[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

Parameters

device
BluetoothDevice

The remote Bluetooth device. Must not be null.

Returns

The codec type of the given HFP connected device. Returns #CODEC_TYPE_UNSUPPORTED if Bluetooth is off, the profile is not connected, the device is not connected, the codec negotiation is not completed, or an error occurs.

Attributes

Applies to