open class Event<out T>
Used as a wrapper for data that is exposed via a LiveData that represents an event.
Event(content: T)
Used as a wrapper for data that is exposed via a LiveData that represents an event. |
var hasBeenHandled: Boolean |
fun get(): T?
Returns the content and prevents its use again. |
|
fun peek(): T
Returns the content, even if it's already been handled. |