Event

class Event<out T>(content: T)

Constructors

Link copied to clipboard
fun <out T> Event(content: T)

Functions

Link copied to clipboard
fun getContentIfNotHandled(): T?

Returns the content and prevents its use again.

Link copied to clipboard
fun peekContent(): T

Returns the content, even if it's already been handled.

Properties

Link copied to clipboard
var hasBeenHandled: Boolean = false