firestore-android-arch-components
firestore-android-arch-components copied to clipboard
Firestore sample with Android architecture component.
ImageDataModel.kt class ImageDataModel @Inject constructor(private val firebaseFirestore: FirebaseFirestore) : ViewModel() { var isLoading = MutableLiveData() var isPagerLoading = MutableLiveData() var apiError = MutableLiveData() var imgResponse = MutableLiveData() fun getPhotosByOrder(orderBy: String){...
Thanks for publishing this sample. I learned a lot from studying your code. However, I am puzzled about one detail. One of the biggest benefits of using a viewmodel is...
Is there a better way for injecting `CollectionReference` for different collection?