# ApicFrame

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/id3/ApicFrame.java+class:androidx.media3.extractor.metadata.id3.ApicFrame)

*** ** * ** ***


```
@UnstableApi
public final class ApicFrame extends Id3Frame
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.media3.extractor.metadata.id3.Id3Frame](https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/Id3Frame) ||
|   | ↳ | [androidx.media3.extractor.metadata.id3.ApicFrame](https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame) |

*** ** * ** ***

APIC (Attached Picture) ID3 frame.

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#ID() = "APIC"` |

| ### Public fields |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#description()` |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#mimeType()` |
| `final byte[]` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#pictureData()` |
| `final int` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#pictureType()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#ApicFrame(java.lang.String,java.lang.String,int,byte[])( https://developer.android.com/reference/java/lang/String.html mimeType, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html description, int pictureType, byte[] pictureData )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html obj)` |
| `int` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#hashCode()()` |
| `void` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#populateMediaMetadata(androidx.media3.common.MediaMetadata.Builder)(https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder builder)` Updates the `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/ApicFrame#toString()()` |

| ### Inherited fields |
|---|
| From [androidx.media3.extractor.metadata.id3.Id3Frame](https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/Id3Frame) |---|---| | `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/Id3Frame#id()` The frame ID. | |

| ### Inherited methods |
|---|
| From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/androidx/media3/common/Metadata.Entry) |---|---| | `@https://developer.android.com/reference/androidx/annotation/Nullable byte[]` | `https://developer.android.com/reference/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/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Format` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataFormat()()` Returns the `https://developer.android.com/reference/androidx/media3/common/Format` that can be used to decode the wrapped metadata in `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()`, or null if this Entry doesn't contain wrapped metadata. | |

## Constants

### ID

```
public static final String ID = "APIC"
```

## Public fields

### description

```
public final @Nullable String description
```

### mimeType

```
public final String mimeType
```

### pictureData

```
public final byte[] pictureData
```

### pictureType

```
public final int pictureType
```

## Public constructors

### ApicFrame

```
public ApicFrame(
    String mimeType,
    @Nullable String description,
    int pictureType,
    byte[] pictureData
)
```

## Public methods

### equals

```
public boolean equals(@Nullable Object obj)
```

### hashCode

```
public int hashCode()
```

### populateMediaMetadata

```
public void populateMediaMetadata(MediaMetadata.Builder builder)
```

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

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

### toString

```
public String toString()
```