Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Consumer

interface Consumer<T : Any!>
androidx.core.util.Consumer

Compat version of java.util.function.Consumer

Summary

Public methods

abstract Unit
accept(t: T)

Performs this operation on the given argument.

Public methods

accept

abstract fun accept(t: T): Unit

Performs this operation on the given argument.

Parameters
t T: the input argument