Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Readme formated fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
İbrahim Yilmaz committed Jul 20, 2019
1 parent 23830fb commit 723f29d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## [Development]
- ChangeLog format fixed.

## Bursa(0.0.3)
- ChangeLog updated for Non Null Observe.
Expand Down
32 changes: 16 additions & 16 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>()
...

viewModel.liveData.nonNullObserve(lifeCycleOwner,::onLiveDataEvent)

```kotlin

val liveData = MutableLiveData<String>()
...

viewModel.liveData.nonNullObserve(lifeCycleOwner,::onLiveDataEvent)

...

fun onLiveDataEvent(event: String){
//Do something good!.
}

```
...

fun onLiveDataEvent(event: String){
//Do something good!.
}

```

Download
--------
Expand Down

0 comments on commit 723f29d

Please sign in to comment.