ui / com.schibsted.account.ui / Event

Event

open class Event<out T>

Used as a wrapper for data that is exposed via a LiveData that represents an event.

Constructors

<init>

Event(content: T)

Used as a wrapper for data that is exposed via a LiveData that represents an event.

Properties

hasBeenHandled

var hasBeenHandled: Boolean

Functions

get

fun get(): T?

Returns the content and prevents its use again.

peek

fun peek(): T

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