# IcyInfo

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

*** ** * ** ***

<br />

```
@UnstableApi
class IcyInfo : Metadata.Entry
```

<br />

*** ** * ** ***

ICY in-stream information.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#IcyInfo(byte[],java.lang.String,java.lang.String)(rawMetadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!, title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, url: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Construct a new IcyInfo from the source metadata, and optionally a StreamTitle and StreamUrl that have been extracted. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#equals(java.lang.Object)(obj: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#populateMediaMetadata(androidx.media3.common.MediaMetadata.Builder)(builder: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder!)` Updates the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#rawMetadata()` The complete metadata bytes used to construct this IcyInfo. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#title()` The stream title if present and decodable, or `null`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#url()` The stream URL if present and decodable, or `null`. |

### Inherited functions

From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>?` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()()`

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.
`https://developer.android.com/reference/kotlin/androidx/media3/common/Format?` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataFormat()()`

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` that can be used to decode the wrapped metadata in `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()`, or null if this Entry doesn't contain wrapped metadata.

## Public constructors

### IcyInfo

```
IcyInfo(rawMetadata: ByteArray<Byte>!, title: String?, url: String?)
```

Construct a new IcyInfo from the source metadata, and optionally a StreamTitle and StreamUrl that have been extracted.

| Parameters |
|---|---|
| `rawMetadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!` | See `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#rawMetadata()`. |
| `title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#title()`. |
| `url: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/icy/IcyInfo#url()`. |

## Public functions

### equals

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

### hashCode

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

### populateMediaMetadata

```
fun populateMediaMetadata(builder: MediaMetadata.Builder!): Unit
```

Updates the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`.

| Parameters |
|---|---|
| `builder: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder!` | The builder to be updated. |

### toString

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

## Public properties

### rawMetadata

```
val rawMetadata: Array<Byte>!
```

The complete metadata bytes used to construct this IcyInfo.

### title

```
val title: String?
```

The stream title if present and decodable, or `null`.

### url

```
val url: String?
```

The stream URL if present and decodable, or `null`.