Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves authored Nov 30, 2020
1 parent aec6528 commit 19c7ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ The `bundle` expression for initializing objects (e.g. Bundle, CharSequence, Par
We can observe the bundle data as LiveData using the `observeBundle` expression.<br>
If there are no extra & arguments in the Activity or Fragment, `null` will be passed to the observers.
```kotlin
private val id by observeBundle("id", -1L)
private val poster by observeBundle<Poster>("poster")
private val id: LiveData<Long> by observeBundle("id", -1L)
private val poster: LiveData<Poster> by observeBundle("poster")

id.observe(this) {
vm.id = it
Expand Down

0 comments on commit 19c7ed8

Please sign in to comment.