Class ContentProviderLiveData<T>


  • public abstract class ContentProviderLiveData<T>
    extends androidx.lifecycle.MutableLiveData<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentProviderLiveData​(android.content.ContentResolver contentResolver, android.net.Uri uri)  
      ContentProviderLiveData​(android.content.Context context, android.net.Uri uri)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract T getContentProviderValue()  
      void load()  
      protected void onActive()  
      protected void onInactive()  
      • Methods inherited from class androidx.lifecycle.MutableLiveData

        postValue, setValue
      • Methods inherited from class androidx.lifecycle.LiveData

        getValue, hasActiveObservers, hasObservers, observe, observeForever, removeObserver, removeObservers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContentProviderLiveData

        public ContentProviderLiveData​(@NonNull
                                       android.content.Context context,
                                       @NonNull
                                       android.net.Uri uri)
      • ContentProviderLiveData

        public ContentProviderLiveData​(@NonNull
                                       android.content.ContentResolver contentResolver,
                                       @NonNull
                                       android.net.Uri uri)
    • Method Detail

      • load

        @WorkerThread
        public void load()
      • onActive

        protected void onActive()
        Overrides:
        onActive in class androidx.lifecycle.LiveData<T>
      • onInactive

        protected void onInactive()
        Overrides:
        onInactive in class androidx.lifecycle.LiveData<T>
      • getContentProviderValue

        protected abstract T getContentProviderValue()