# Consumer

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/util/Consumer.java+class:androidx.media3.common.util.Consumer)

*** ** * ** ***


```
@UnstableApi
public interface Consumer<T> extends Consumer<T>
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
>
> Use `https://developer.android.com/reference/java/util/function/Consumer.html` instead.

## Summary

### Inherited methods

From [java.util.function.Consumer](https://developer.android.com/reference/java/util/function/Consumer.html) `abstract void` `[accept](https://developer.android.com/reference/java/util/function/Consumer.html#accept(T))(T p)`

**This method is deprecated.** Deprecated in Java
`default https://developer.android.com/reference/java/util/function/Consumer.html<T>` `[andThen](https://developer.android.com/reference/java/util/function/Consumer.html#andThen(java.util.function.Consumer&lt;? super T&gt;))(https://developer.android.com/reference/java/util/function/Consumer.html<T> after)`

**This method is deprecated.** Deprecated in Java