# Id3Decoder.FramePredicate

# Id3Decoder.FramePredicate

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/extractor/metadata/id3/Id3Decoder.FramePredicate "View this page in Java")

<br />

```
interface Id3Decoder.FramePredicate
```

<br />

*** ** * ** ***

A predicate for determining whether individual frames should be decoded.

## Summary

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [evaluate](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/id3/Id3Decoder.FramePredicate#evaluate(int,int,int,int,int))`(majorVersion: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, id0: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, id1: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, id2: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, id3: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns whether a frame with the specified parameters should be decoded. |

## Public functions

### evaluate

```
fun evaluate(majorVersion: Int, id0: Int, id1: Int, id2: Int, id3: Int): Boolean
```

Returns whether a frame with the specified parameters should be decoded.  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|-----------------------------------|
| `majorVersion: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The major version of the ID3 tag. |
| `id0: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | The first byte of the frame ID.   |
| `id1: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | The second byte of the frame ID.  |
| `id2: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | The third byte of the frame ID.   |
| `id3: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | The fourth byte of the frame ID.  |

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|--------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether the frame should be decoded. |