Hello ! I am trying to understand how to get Contacts (from ContactsContract) using a ViewModel. I only found the official tutorial which uses a CursorLoader (
https://developer.android.com/training/contacts-provider/retrieve-names). Are there any tutorials, guides or articles who could help understand how to do that? Thank you for your patience!
EDIT: Ignore the question as it wasn't related to Kotlin.
EDIT2: If you care, it seems that I was understanding it the wrong way. ContactsContract is a ContentProvider, which is an API on a database. It would be redundant with a Room/DAO implementation.