From 723f29df8b309a9dd786e6a509e973373c426c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=CC=87brahim=20Yilmaz?= Date: Sat, 20 Jul 2019 11:22:00 +0200 Subject: [PATCH] Readme formated fixed --- CHANGELOG.MD | 1 + README.MD | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index a98f97d..112e059 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,6 +1,7 @@ # Changelog ## [Development] +- ChangeLog format fixed. ## Bursa(0.0.3) - ChangeLog updated for Non Null Observe. diff --git a/README.MD b/README.MD index 39ada7f..cd31877 100644 --- a/README.MD +++ b/README.MD @@ -53,24 +53,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 --------