Event

open class Event<T>

A data type to be used in Livedata for consumable event that may need a payload as well. For eg. an error event which has a error message

Constructors

Link copied to clipboard
constructor(data: T)

Functions

Link copied to clipboard
open fun get(): T
get returns the data and consumes it
Link copied to clipboard
open fun peek(): T
only peek to see the data without consuming
Link copied to clipboard
open fun toString(): String