Skip to content

Instantly share code, notes, and snippets.

public class UPIViewModel extends ViewModel {
public MutableLiveData<String> upiID = new MutableLiveData<>("");
public SingleLiveEvent<Boolean> isSubmitAction = new SingleLiveEvent<>();
public SingleLiveEvent<Boolean> canSaveData = new SingleLiveEvent<>();
public void onSubmit() {
isSubmitAction.postValue(true);
}