public final class OnComponentReadyRunner
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
OnComponentReadyRunner.OnComponentReadyListener<T>
Rules should register an implementation of this to get access to the singleton component
|
static interface |
OnComponentReadyRunner.OnComponentReadyRunnerHolder
Public for use by generated code and
TestApplicationComponentManager |
Constructor and Description |
---|
OnComponentReadyRunner() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
addListener(android.content.Context context,
java.lang.Class<T> entryPoint,
OnComponentReadyRunner.OnComponentReadyListener<T> listener)
Must be called on the test thread, before the Statement is evaluated.
|
boolean |
isEmpty() |
void |
setComponentManager(dagger.hilt.internal.GeneratedComponentManager<?> componentManager)
Used by generated code, to notify listeners that the component has been created.
|
public void setComponentManager(dagger.hilt.internal.GeneratedComponentManager<?> componentManager)
public static <T> void addListener(android.content.Context context, java.lang.Class<T> entryPoint, OnComponentReadyRunner.OnComponentReadyListener<T> listener)
public boolean isEmpty()