# Label

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/Label.java+class:androidx.media3.common.Label)

*** ** * ** ***


```
@UnstableApi
class Label
```

<br />

*** ** * ** ***

A label for a `https://developer.android.com/reference/kotlin/androidx/media3/common/Format`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#Label(java.lang.String,java.lang.String)(language: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Creates a label. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/common/Label!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#fromBundle(android.os.Bundle)(bundle: https://developer.android.com/reference/android/os/Bundle.html!)` Deserializes an instance from a `https://developer.android.com/reference/android/os/Bundle.html` produced by `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#toBundle()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#hashCode()()` |
| `https://developer.android.com/reference/android/os/Bundle.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#toBundle()()` Serializes this instance to a `https://developer.android.com/reference/android/os/Bundle.html`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#language()` The language of this label, as an IETF BCP 47 conformant tag, or null if unknown or not applicable. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#value()` The value for this label. |

## Public constructors

### Label

```
Label(language: String?, value: String!)
```

Creates a label.

| Parameters |
|---|---|
| `language: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The language of this label, as an IETF BCP 47 conformant tag, or null if unknown or not applicable. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The label value. |

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```

### fromBundle

```
java-static fun fromBundle(bundle: Bundle!): Label!
```

Deserializes an instance from a `https://developer.android.com/reference/android/os/Bundle.html` produced by `https://developer.android.com/reference/kotlin/androidx/media3/common/Label#toBundle()`.

### hashCode

```
fun hashCode(): Int
```

### toBundle

```
fun toBundle(): Bundle!
```

Serializes this instance to a `https://developer.android.com/reference/android/os/Bundle.html`.

### toString

```
fun toString(): String!
```

## Public properties

### language

```
val language: String?
```

The language of this label, as an IETF BCP 47 conformant tag, or null if unknown or not applicable.

### value

```
val value: String!
```

The value for this label.