Class ViewModelBase<T>

  • Direct Known Subclasses:
    OperableViewModel

    public abstract class ViewModelBase<T>
    extends androidx.lifecycle.AndroidViewModel
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ViewModelBase​(android.app.Application application)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected T getArguments()  
      void init​(T args)  
      protected void onCleared()  
      protected void onCreate()  
      protected void setArguments​(T arguments)  
      • Methods inherited from class androidx.lifecycle.AndroidViewModel

        getApplication
      • Methods inherited from class java.lang.Object

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

      • ViewModelBase

        protected ViewModelBase​(android.app.Application application)
    • Method Detail

      • init

        public void init​(T args)
      • onCreate

        protected void onCreate()
      • getArguments

        protected T getArguments()
      • setArguments

        protected void setArguments​(T arguments)
      • onCleared

        @CallSuper
        protected void onCleared()
        Overrides:
        onCleared in class androidx.lifecycle.ViewModel