# CapturingFrameProcessor.FramesEvent

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

*** ** * ** ***


```
public final class CapturingFrameProcessor.FramesEvent implements CapturingFrameProcessor.Event
```

<br />

*** ** * ** ***

Holds the frames queued in a `https://developer.android.com/reference/androidx/media3/test/utils/CapturingFrameProcessor#queue(java.util.List<androidx.media3.common.video.AsyncFrame>)` call.

## Summary

| ### Public fields |
|---|---|
| `final https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/androidx/media3/common/video/AsyncFrame>` | `https://developer.android.com/reference/androidx/media3/test/utils/CapturingFrameProcessor.FramesEvent#frames()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/test/utils/CapturingFrameProcessor.FramesEvent#FramesEvent(java.util.List<androidx.media3.common.video.AsyncFrame>)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/video/AsyncFrame> frames)` Creates a new instance. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/test/utils/CapturingFrameProcessor.FramesEvent#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html o)` Performs an identity-based comparison of the frames in the list, as `https://developer.android.com/reference/androidx/media3/common/video/AsyncFrame` does not implement `equals()`. |
| `int` | `https://developer.android.com/reference/androidx/media3/test/utils/CapturingFrameProcessor.FramesEvent#hashCode()()` |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/test/utils/CapturingFrameProcessor.FramesEvent#toString()()` |

## Public fields

### frames

```
public final ImmutableList<AsyncFrame> frames
```

## Public constructors

### FramesEvent

```
public FramesEvent(List<AsyncFrame> frames)
```

Creates a new instance.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/video/AsyncFrame> frames` | The frames to record. Will be defensively copied. |

## Public methods

### equals

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

Performs an identity-based comparison of the frames in the list, as `https://developer.android.com/reference/androidx/media3/common/video/AsyncFrame` does not implement `equals()`.

### hashCode

```
public int hashCode()
```

### toString

```
public String toString()
```