Interface Consumer<T>


  • @Deprecated
    public interface Consumer<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 Detail

      • accept

        void accept​(T t)
        Deprecated.
        Performs this operation on the given argument.