<how can I consume LiveData&lt;PagedList&lt;Letter...
# stackoverflow
u
how can I consume LiveData&lt;PagedList&lt;Letter&gt;&gt; in a dataRopsitory from an Application class? I'm working on a feature for a letter vault project that helps keeps a letter till a latter time you want it opened...the idea is that the user receives a notification once a letter is ready to be opened. I have a function in the DataRepository that helps letter from the database with the help of paging library. class DataRepository(private val letterDao: LetterDao) { companion object { const val PAGE_SIZE = 30 const val PLACEHOLDERS = true private val PAGING_CONFIG =...