1package android.arch.lifecycle { 2 3 public class AndroidViewModel extends android.arch.lifecycle.ViewModel { 4 ctor public AndroidViewModel(android.app.Application); 5 method public <T extends android.app.Application> T getApplication(); 6 } 7 8 public abstract class ViewModel { 9 ctor public ViewModel(); 10 method protected void onCleared(); 11 } 12 13 public class ViewModelProvider { 14 ctor public ViewModelProvider(android.arch.lifecycle.ViewModelStoreOwner, android.arch.lifecycle.ViewModelProvider.Factory); 15 ctor public ViewModelProvider(android.arch.lifecycle.ViewModelStore, android.arch.lifecycle.ViewModelProvider.Factory); 16 method public <T extends android.arch.lifecycle.ViewModel> T get(java.lang.Class<T>); 17 method public <T extends android.arch.lifecycle.ViewModel> T get(java.lang.String, java.lang.Class<T>); 18 } 19 20 public static class ViewModelProvider.AndroidViewModelFactory extends android.arch.lifecycle.ViewModelProvider.NewInstanceFactory { 21 ctor public ViewModelProvider.AndroidViewModelFactory(android.app.Application); 22 method public static android.arch.lifecycle.ViewModelProvider.AndroidViewModelFactory getInstance(android.app.Application); 23 } 24 25 public static abstract interface ViewModelProvider.Factory { 26 method public abstract <T extends android.arch.lifecycle.ViewModel> T create(java.lang.Class<T>); 27 } 28 29 public static class ViewModelProvider.NewInstanceFactory implements android.arch.lifecycle.ViewModelProvider.Factory { 30 ctor public ViewModelProvider.NewInstanceFactory(); 31 method public <T extends android.arch.lifecycle.ViewModel> T create(java.lang.Class<T>); 32 } 33 34 public class ViewModelStore { 35 ctor public ViewModelStore(); 36 method public final void clear(); 37 } 38 39 public abstract interface ViewModelStoreOwner { 40 method public abstract android.arch.lifecycle.ViewModelStore getViewModelStore(); 41 } 42 43} 44 45