Class BaseViewModel

  • All Implemented Interfaces:

    
    public class BaseViewModel
    extends ViewModel
                        

    Parent class that all ViewModel classes should extend in order to share common functionality

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseViewModel()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final MutableLiveData<Boolean> isLoading()
      Unit setLoading(Boolean isLoading)
      • Methods inherited from class androidx.lifecycle.ViewModel

        addCloseable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait