BluetoothLeAudioCodecConfig

public final class BluetoothLeAudioCodecConfig
extends Object

java.lang.Object
   ↳ android.bluetooth.BluetoothLeAudioCodecConfig


Represents the codec configuration for a Bluetooth LE Audio source device.

Contains the source codec type.

The source codec type values are the same as those supported by the device hardware.

Summary

Nested classes

class BluetoothLeAudioCodecConfig.Builder

Builder for BluetoothLeAudioCodecConfig

Constants

int SOURCE_CODEC_TYPE_INVALID

int SOURCE_CODEC_TYPE_LC3

Public methods

String getCodecName()

Gets the codec name.

int getCodecType()

Gets the codec type.

static int getMaxCodecType()

Returns the valid codec types count.

String toString()

Returns a string representation of the object.

Inherited methods

Constants

SOURCE_CODEC_TYPE_INVALID

public static final int SOURCE_CODEC_TYPE_INVALID

Constant Value: 1000000 (0x000f4240)

SOURCE_CODEC_TYPE_LC3

public static final int SOURCE_CODEC_TYPE_LC3

Constant Value: 0 (0x00000000)

Public methods

getCodecName

public String getCodecName ()

Gets the codec name.

Returns
String the codec name This value cannot be null.

getCodecType

public int getCodecType ()

Gets the codec type.

Returns
int the codec type Value is SOURCE_CODEC_TYPE_LC3, or SOURCE_CODEC_TYPE_INVALID

getMaxCodecType

public static int getMaxCodecType ()

Returns the valid codec types count.

Returns
int

toString

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
String a string representation of the object.