https://kotlinlang.org logo
#android
Title
# android
r

rishabhsinghbisht

03/22/2019, 8:07 AM
is there any simpler way to do this?
g

ghedeon

03/22/2019, 8:35 AM
not yet, but there is a ticket for that
a

arekolek

03/22/2019, 8:36 AM
https://youtrack.jetbrains.com/issue/KT-14663 I think currently, there’s nothing simpler.
Copy code
private val _data = MutableLiveData<Data>()

val data: LiveData<Data>
        get() = _data
is what I do
👍 2
g

ghedeon

03/22/2019, 8:38 AM
z

zachtib

03/22/2019, 1:07 PM
I've wanted this for a while, glad it's being talked about!
3 Views