Created
December 6, 2021 11:09
-
-
Save Kashif-E/b5ce251991f9c2e63953d12dff7212d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class BaseViewModel : ViewModel() { | |
var responseMessage: MutableSharedFlow<Resource.CustomMessages> = MutableSharedFlow() | |
protected fun onResponseComplete(message : Resource.CustomMessages){ | |
viewModelScope.launch { | |
responseMessage.emit(message) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment