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

Link copied to clipboard
fun Event()