The second Android 11 Developer Preview is now available, test it out and share your feedback.

Consumer

public interface Consumer

androidx.core.util.Consumer<T>


Compat version of Consumer

Summary

Public methods

abstract void accept(T t)

Performs this operation on the given argument.

Public methods

accept

public abstract void accept (T t)

Performs this operation on the given argument.

Parameters
t T: the input argument