Event

abstract class Event<T : ViewState>

One time event sent from ViewModel to Fragment/Activity via BaseViewModel.sendEvent. Event is tied directly to specific Fragment/Activity via its ViewState. Events are delivered through LiveData-based bus.

Event is guaranteed to be delivered just once even screen rotation or a similar operation is in progress.

Constructors

Event
Link copied to clipboard
fun Event()

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String