BluetoothHeadset.GetCodecType(BluetoothDevice) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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