diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 87a1693..59cd447 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -2,6 +2,7 @@ ## [Development] - ChangeLog updated for Bintray Download. +- ChangeLog format fixed. ## Bursa(0.0.3) - ChangeLog updated for Non Null Observe. diff --git a/README.MD b/README.MD index ffc3b47..58ebaad 100644 --- a/README.MD +++ b/README.MD @@ -55,24 +55,24 @@ Usage liveData.postValue(lifeCycleOwner,observer2) ``` - * **`nonNullObserve`** + * **`nonNullObserve`** - LiveData that buffers all items it observes and replays them to any `Observer` that subscribes. + LiveData that buffers all items it observes and replays them to any `Observer` that subscribes. + + ```kotlin + + val liveData = MutableLiveData() + ... + + viewModel.liveData.nonNullObserve(lifeCycleOwner,::onLiveDataEvent) - ```kotlin - - val liveData = MutableLiveData() - ... - - viewModel.liveData.nonNullObserve(lifeCycleOwner,::onLiveDataEvent) - - ... - - fun onLiveDataEvent(event: String){ - //Do something good!. - } - - ``` + ... + + fun onLiveDataEvent(event: String){ + //Do something good!. + } + + ``` Download --------