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

Commit

Permalink
merge from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
İbrahim Yilmaz committed Jul 20, 2019
2 parents bf170ac + b454428 commit 888c079
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
Expand Up @@ -2,6 +2,7 @@

## [Development]
- ChangeLog updated for Bintray Download.
- 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 @@ -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<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 888c079

Please sign in to comment.