Jeremy Woods | 912d6c3 | 2022-04-05 08:53:38 -0700 | [diff] [blame] | 1 | // Signature format: 4.0 |
| 2 | package androidx.lifecycle { |
| 3 | |
| 4 | public abstract class AbstractSavedStateViewModelFactory implements androidx.lifecycle.ViewModelProvider.Factory { |
| 5 | ctor public AbstractSavedStateViewModelFactory(); |
| 6 | ctor public AbstractSavedStateViewModelFactory(androidx.savedstate.SavedStateRegistryOwner, android.os.Bundle?); |
| 7 | method public final <T extends androidx.lifecycle.ViewModel> T create(Class<T!>, androidx.lifecycle.viewmodel.CreationExtras); |
| 8 | method public final <T extends androidx.lifecycle.ViewModel> T create(Class<T!>); |
| 9 | method protected abstract <T extends androidx.lifecycle.ViewModel> T create(String, Class<T!>, androidx.lifecycle.SavedStateHandle); |
| 10 | } |
| 11 | |
| 12 | public final class SavedStateHandle { |
| 13 | ctor public SavedStateHandle(java.util.Map<java.lang.String,?> initialState); |
| 14 | ctor public SavedStateHandle(); |
| 15 | method @MainThread public void clearSavedStateProvider(String key); |
| 16 | method @MainThread public operator boolean contains(String key); |
| 17 | method @MainThread public operator <T> T? get(String key); |
| 18 | method @MainThread public <T> androidx.lifecycle.MutableLiveData<T> getLiveData(String key); |
| 19 | method @MainThread public <T> androidx.lifecycle.MutableLiveData<T> getLiveData(String key, T? initialValue); |
| 20 | method @MainThread public <T> kotlinx.coroutines.flow.StateFlow<T> getStateFlow(String key, T? initialValue); |
| 21 | method @MainThread public java.util.Set<java.lang.String> keys(); |
| 22 | method @MainThread public <T> T? remove(String key); |
| 23 | method @MainThread public operator <T> void set(String key, T? value); |
| 24 | method @MainThread public void setSavedStateProvider(String key, androidx.savedstate.SavedStateRegistry.SavedStateProvider provider); |
| 25 | field public static final androidx.lifecycle.SavedStateHandle.Companion Companion; |
| 26 | } |
| 27 | |
| 28 | public static final class SavedStateHandle.Companion { |
| 29 | } |
| 30 | |
| 31 | public final class SavedStateHandleSupport { |
| 32 | method @MainThread public static androidx.lifecycle.SavedStateHandle createSavedStateHandle(androidx.lifecycle.viewmodel.CreationExtras); |
| 33 | method @MainThread public static <T extends androidx.savedstate.SavedStateRegistryOwner & androidx.lifecycle.ViewModelStoreOwner> void enableSavedStateHandles(T); |
| 34 | field public static final androidx.lifecycle.viewmodel.CreationExtras.Key<android.os.Bundle> DEFAULT_ARGS_KEY; |
| 35 | field public static final androidx.lifecycle.viewmodel.CreationExtras.Key<androidx.savedstate.SavedStateRegistryOwner> SAVED_STATE_REGISTRY_OWNER_KEY; |
| 36 | field public static final androidx.lifecycle.viewmodel.CreationExtras.Key<androidx.lifecycle.ViewModelStoreOwner> VIEW_MODEL_STORE_OWNER_KEY; |
| 37 | } |
| 38 | |
| 39 | public final class SavedStateViewModelFactory implements androidx.lifecycle.ViewModelProvider.Factory { |
| 40 | ctor public SavedStateViewModelFactory(); |
| 41 | ctor public SavedStateViewModelFactory(android.app.Application? application, androidx.savedstate.SavedStateRegistryOwner owner); |
| 42 | ctor public SavedStateViewModelFactory(android.app.Application? application, androidx.savedstate.SavedStateRegistryOwner owner, android.os.Bundle? defaultArgs); |
| 43 | method public <T extends androidx.lifecycle.ViewModel> T create(String key, Class<T> modelClass); |
| 44 | } |
| 45 | |
| 46 | } |
| 47 | |