Back to Exoplayer

Consumer (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/Consumer.html

latest1.2 KB
Original Source

Package com.google.android.exoplayer2.util

Interface Consumer<T>


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceConsumer\<T\>

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Represents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces, Consumer is expected to operate via side-effects.

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | accept​(T t) | Deprecated.

Performs this operation on the given argument. |

Method Detail

- 

accept

void accept​([T](Consumer.html "type parameter in Consumer")t)

Deprecated.

Performs this operation on the given argument.