<Kotlin LiveData in object class> I have defined s...
# stackoverflow
u
Kotlin LiveData in object class I have defined singleton in Kotlin as object class where I have connection to Room database and most logic is written in this class. I have defined LiveData, but its value is null, since there must be observer to work. How can I implement observer in object class? Is this possible since function observe() takes Lifecycle as paramer?