blob: dabfabb84ca1929d8259f5f77177336e5b568c77 [file] [log] [blame]
// Signature format: 4.0
package androidx.lifecycle.viewmodel.testing {
public final class DefaultCreationExtrasKt {
method public static androidx.lifecycle.viewmodel.CreationExtras DefaultCreationExtras();
method public static androidx.lifecycle.viewmodel.CreationExtras DefaultCreationExtras(android.os.Bundle defaultArgs);
}
public final class ViewModelScenario<VM extends androidx.lifecycle.ViewModel> implements java.lang.AutoCloseable {
ctor @kotlin.PublishedApi internal ViewModelScenario(kotlin.reflect.KClass<VM> modelClass, androidx.lifecycle.ViewModelProvider.Factory modelFactory, optional androidx.lifecycle.viewmodel.CreationExtras initialModelExtras);
method public void close();
method public VM getViewModel();
method public void recreate();
property public VM viewModel;
}
public final class ViewModelScenarioKt {
method @KotlinOnly public static inline <reified VM extends androidx.lifecycle.ViewModel> androidx.lifecycle.viewmodel.testing.ViewModelScenario<VM> viewModelScenario(optional androidx.lifecycle.viewmodel.CreationExtras creationExtras, kotlin.jvm.functions.Function1<androidx.lifecycle.viewmodel.CreationExtras,VM> initializer);
method @KotlinOnly public static inline <reified VM extends androidx.lifecycle.ViewModel> androidx.lifecycle.viewmodel.testing.ViewModelScenario<VM> viewModelScenario(androidx.lifecycle.ViewModelProvider.Factory factory, optional androidx.lifecycle.viewmodel.CreationExtras creationExtras);
}
}