Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
LiveEvent sample (for snackbar)
* Snackbar LiveEvent
* (see
* This is private because we don't want to expose setting this value to the Fragment.
private val snackBarEvent = LiveEvent<String>()
val showSnackBarEvent: LiveData<String> = snackBarEvent
implementation "com.github.hadilq.liveevent:liveevent:1.0.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment