# 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
interface Consumer<T> : Consumer<T!>
```

<br />

*** ** * ** ***

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

## Summary

### Inherited functions

From [java.util.function.Consumer](https://developer.android.com/reference/java/util/function/Consumer.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[accept](https://developer.android.com/reference/java/util/function/Consumer.html#accept(T))(p: T!)`

**This function is deprecated.** Deprecated in Java
`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;))(after: https://developer.android.com/reference/java/util/function/Consumer.html<T!>!)`

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