A handler that handles events. Java does SAM conversion.
An method which replacing kotlin apply block.