- ActivityComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of the activity.
- ActivityContext - Annotation Type in dagger.hilt.android.qualifiers
-
Annotation for a Context
that corresponds to the activity.
- ActivityRetainedComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of a configuration surviving activity.
- ActivityRetainedScoped - Annotation Type in dagger.hilt.android.scopes
-
Scope annotation for bindings that should exist for the life of an activity, surviving
configuration.
- ActivityScoped - Annotation Type in dagger.hilt.android.scopes
-
Scope annotation for bindings that should exist for the life of an activity.
- addCallbackTo(ListenableFuture<T>) - Method in class dagger.producers.monitoring.ProducerMonitor
-
Adds this monitor's completion methods as a callback to the future.
- addListener(Context, Class<T>, OnComponentReadyRunner.OnComponentReadyListener<T>) - Static method in class dagger.hilt.android.testing.OnComponentReadyRunner
-
Must be called on the test thread, before the Statement is evaluated.
- AliasOf - Annotation Type in dagger.hilt.migration
-
Defines an alias between an existing Hilt scope and the annotated scope.
- AndroidEntryPoint - Annotation Type in dagger.hilt.android
-
Marks an Android component class to be setup for injection with the standard Hilt Dagger Android
components.
- AndroidInjection - Class in dagger.android
-
Injects core Android types.
- AndroidInjectionKey - Annotation Type in dagger.android
-
- AndroidInjectionKeys - Class in dagger.android.internal
-
An internal implementation detail of Dagger's generated code.
- AndroidInjectionModule - Class in dagger.android
-
Contains bindings to ensure the usability of dagger.android
framework classes.
- AndroidInjector<T> - Interface in dagger.android
-
Performs members-injection for a concrete subtype of a
core Android type (e.g.,
Activity
or
Fragment
).
- androidInjector() - Method in class dagger.android.DaggerActivity
-
- androidInjector() - Method in class dagger.android.DaggerApplication
-
- androidInjector() - Method in class dagger.android.DaggerDialogFragment
-
Deprecated.
- androidInjector() - Method in class dagger.android.DaggerFragment
-
Deprecated.
- androidInjector() - Method in interface dagger.android.HasAndroidInjector
-
- androidInjector() - Method in class dagger.android.support.DaggerAppCompatActivity
-
- androidInjector() - Method in class dagger.android.support.DaggerAppCompatDialogFragment
-
- androidInjector() - Method in class dagger.android.support.DaggerDialogFragment
-
- androidInjector() - Method in class dagger.android.support.DaggerFragment
-
- AndroidInjector.Builder<T> - Class in dagger.android
-
- AndroidInjector.Factory<T> - Interface in dagger.android
-
- AndroidSupportInjection - Class in dagger.android.support
-
Injects core Android types from support libraries.
- AndroidSupportInjectionModule - Class in dagger.android.support
-
This module no longer provides any value beyond what is provided in
AndroidInjectionModule
and is just an alias.
- annotations() - Method in class dagger.grpc.server.processor.GrpcServiceProcessor
-
- ApplicationComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of the application.
- ApplicationContext - Annotation Type in dagger.hilt.android.qualifiers
-
Annotation for an Application Context dependency.
- applicationInjector() - Method in class dagger.android.DaggerApplication
-
- applicationInjector() - Method in class dagger.android.support.DaggerApplication
-
- apply(Statement, Description) - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
- attachBaseContext(Context) - Method in class dagger.hilt.android.testing.HiltTestApplication
-
- dagger - package dagger
-
This package contains the public API for the
Dagger 2 dependency
injection framework.
- dagger.android - package dagger.android
-
APIs to assist with performing injection on Android.
- dagger.android.internal - package dagger.android.internal
-
- dagger.android.support - package dagger.android.support
-
- dagger.grpc.server - package dagger.grpc.server
-
- dagger.grpc.server.processor - package dagger.grpc.server.processor
-
- dagger.hilt - package dagger.hilt
-
This package contains the core APIs for Hilt.
- dagger.hilt.android - package dagger.hilt.android
-
This package contains Hilt APIs for Android applications.
- dagger.hilt.android.components - package dagger.hilt.android.components
-
This package contains Hilt's built-in
Component
s for Android.
- dagger.hilt.android.migration - package dagger.hilt.android.migration
-
This package contains Android APIs to help migrating a codebase to Hilt.
- dagger.hilt.android.qualifiers - package dagger.hilt.android.qualifiers
-
This package contains Hilt's built-in Android Qualifier
annotations.
- dagger.hilt.android.scopes - package dagger.hilt.android.scopes
-
This package contains Hilt's built-in Android Scope
annotations.
- dagger.hilt.android.testing - package dagger.hilt.android.testing
-
This package contains APIs for writing Android local or instrumentation tests with Hilt.
- dagger.hilt.codegen - package dagger.hilt.codegen
-
This package contains APIs for code generators that produce code that will be processed by Hilt.
- dagger.hilt.migration - package dagger.hilt.migration
-
This package contains APIs to help migrating a codebase to Hilt.
- dagger.multibindings - package dagger.multibindings
-
This package contains the API by which Dagger allows you to bind several objects into a
collection that can be injected without depending directly on each of the individual bindings.
- dagger.producers - package dagger.producers
-
This package contains the public API for Dagger 2's producer functionality.
- dagger.producers.monitoring - package dagger.producers.monitoring
-
This package provides hooks for monitoring producers.
- dagger.spi - package dagger.spi
-
This package contains the Service Provider interface (SPI) to the dagger.model
APIs at
annotation-processing-time.
- DaggerActivity - Class in dagger.android
-
- DaggerActivity() - Constructor for class dagger.android.DaggerActivity
-
- DaggerAppCompatActivity - Class in dagger.android.support
-
- DaggerAppCompatActivity() - Constructor for class dagger.android.support.DaggerAppCompatActivity
-
- DaggerAppCompatActivity(int) - Constructor for class dagger.android.support.DaggerAppCompatActivity
-
- DaggerAppCompatDialogFragment - Class in dagger.android.support
-
- DaggerAppCompatDialogFragment() - Constructor for class dagger.android.support.DaggerAppCompatDialogFragment
-
- DaggerApplication - Class in dagger.android
-
An Application
that injects its members and can be used to inject objects that the
Android framework instantiates, such as Activitys, Fragments, or Services.
- DaggerApplication() - Constructor for class dagger.android.DaggerApplication
-
- DaggerApplication - Class in dagger.android.support
-
An Application
that injects its members and can be used to inject classes that the
Android framework instantiates.
- DaggerApplication() - Constructor for class dagger.android.support.DaggerApplication
-
- DaggerBroadcastReceiver - Class in dagger.android
-
- DaggerBroadcastReceiver() - Constructor for class dagger.android.DaggerBroadcastReceiver
-
- DaggerContentProvider - Class in dagger.android
-
- DaggerContentProvider() - Constructor for class dagger.android.DaggerContentProvider
-
- DaggerDialogFragment - Class in dagger.android
-
- DaggerDialogFragment() - Constructor for class dagger.android.DaggerDialogFragment
-
Deprecated.
- DaggerDialogFragment - Class in dagger.android.support
-
- DaggerDialogFragment() - Constructor for class dagger.android.support.DaggerDialogFragment
-
- DaggerFragment - Class in dagger.android
-
- DaggerFragment() - Constructor for class dagger.android.DaggerFragment
-
Deprecated.
- DaggerFragment - Class in dagger.android.support
-
- DaggerFragment() - Constructor for class dagger.android.support.DaggerFragment
-
- DaggerFragment(int) - Constructor for class dagger.android.support.DaggerFragment
-
- DaggerIntentService - Class in dagger.android
-
- DaggerIntentService(String) - Constructor for class dagger.android.DaggerIntentService
-
- DaggerService - Class in dagger.android
-
- DaggerService() - Constructor for class dagger.android.DaggerService
-
- DefineComponent - Annotation Type in dagger.hilt
-
Defines a Hilt component.
- DefineComponent.Builder - Annotation Type in dagger.hilt
-
Defines a builder for a Hilt component.
- delegatingProductionComponentTimingRecorderFactory(Collection<ProductionComponentTimingRecorder.Factory>) - Static method in class dagger.producers.monitoring.TimingRecorders
-
Returns a timing recorder factory that delegates to the given factories, and ensures that any
method called on this object, even transitively, does not throw a RuntimeException
or
return null.
- DiagnosticReporter - Interface in dagger.spi
-
An object that
BindingGraphPlugin
s can use to report diagnostics while visiting a
BindingGraph
.
- DisableInstallInCheck - Annotation Type in dagger.hilt.migration
-
Marks a
Module
-annotated class to allow it to have no
InstallIn
annotation.
- DispatchingAndroidInjector<T> - Class in dagger.android
-
Performs members-injection on instances of core Android types (e.g.
- DispatchingAndroidInjector.InvalidInjectorBindingException - Exception in dagger.android
-
- immediateFailedProducer(Throwable) - Static method in class dagger.producers.Producers
-
Returns a producer that fails with the given exception.
- immediateProducer(T) - Static method in class dagger.producers.Producers
-
Returns a producer that succeeds with the given value.
- initElements(Elements) - Method in interface dagger.spi.BindingGraphPlugin
-
Initializes this plugin with a Elements
instance.
- initFiler(Filer) - Method in interface dagger.spi.BindingGraphPlugin
-
Initializes this plugin with a Filer
that it can use to write Java or other files based
on the binding graph.
- initOptions(Map<String, String>) - Method in interface dagger.spi.BindingGraphPlugin
-
- initSteps() - Method in class dagger.grpc.server.processor.GrpcServiceProcessor
-
- initTypes(Types) - Method in interface dagger.spi.BindingGraphPlugin
-
Initializes this plugin with a Types
instance.
- inject(Activity) - Static method in class dagger.android.AndroidInjection
-
Injects
activity
if an associated
AndroidInjector
implementation can be found,
otherwise throws an
IllegalArgumentException
.
- inject(Fragment) - Static method in class dagger.android.AndroidInjection
-
Injects
fragment
if an associated
AndroidInjector
implementation can be found,
otherwise throws an
IllegalArgumentException
.
- inject(Service) - Static method in class dagger.android.AndroidInjection
-
Injects
service
if an associated
AndroidInjector
implementation can be found,
otherwise throws an
IllegalArgumentException
.
- inject(BroadcastReceiver, Context) - Static method in class dagger.android.AndroidInjection
-
Injects
broadcastReceiver
if an associated
AndroidInjector
implementation can
be found, otherwise throws an
IllegalArgumentException
.
- inject(ContentProvider) - Static method in class dagger.android.AndroidInjection
-
Injects
contentProvider
if an associated
AndroidInjector
implementation can be
found, otherwise throws an
IllegalArgumentException
.
- inject(T) - Method in interface dagger.android.AndroidInjector
-
Injects the members of instance
.
- inject(T) - Method in class dagger.android.DispatchingAndroidInjector
-
Performs members-injection on instance
.
- inject(Fragment) - Static method in class dagger.android.support.AndroidSupportInjection
-
Injects
fragment
if an associated
AndroidInjector
implementation can be found,
otherwise throws an
IllegalArgumentException
.
- inject() - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
- injectMembers(T) - Method in interface dagger.MembersInjector
-
Injects dependencies into the fields and methods of instance
.
- InProcessServerModule - Class in dagger.grpc.server
-
Installing this module into a @Singleton
component means the component can
provide a Server
that serves in-process requests.
- InstallIn - Annotation Type in dagger.hilt
-
An annotation that declares which component(s) the annotated class should be included in when
Hilt generates the components.
- IntKey - Annotation Type in dagger.multibindings
-
A
MapKey
annotation for maps with
int
keys.
- IntoMap - Annotation Type in dagger.multibindings
-
The method's return type forms the type argument for the value of a Map<K, Provider<V>>
,
and the combination of the annotated key and the returned value is contributed to the map as a
key/value pair.
- IntoSet - Annotation Type in dagger.multibindings
-
The method's return type forms the generic type argument of a Set<T>
, and the returned
value is contributed to the set.
- isEmpty() - Method in class dagger.hilt.android.testing.OnComponentReadyRunner
-
- ready() - Method in class dagger.producers.monitoring.ProducerMonitor
-
Called when all of the producer's inputs are available.
- recordFailure(Throwable, long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer's future has failed with the given statistics.
- recordMethod(long, long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer method has finished executing with the given statistics.
- recordSkip(Throwable) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer was skipped because one of its inputs failed.
- recordSuccess(long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer's future has succeeded with the given statistics.
- reportBinding(Diagnostic.Kind, BindingGraph.MaybeBinding, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a binding or missing binding.
- reportBinding(Diagnostic.Kind, BindingGraph.MaybeBinding, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a binding or missing binding.
- reportComponent(Diagnostic.Kind, BindingGraph.ComponentNode, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a component.
- reportComponent(Diagnostic.Kind, BindingGraph.ComponentNode, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a component.
- reportDependency(Diagnostic.Kind, BindingGraph.DependencyEdge, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a dependency.
- reportDependency(Diagnostic.Kind, BindingGraph.DependencyEdge, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a dependency.
- reportSubcomponentFactoryMethod(Diagnostic.Kind, BindingGraph.ChildFactoryMethodEdge, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a subcomponent factory method.
- reportSubcomponentFactoryMethod(Diagnostic.Kind, BindingGraph.ChildFactoryMethodEdge, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a subcomponent factory method.
- requested() - Method in class dagger.producers.monitoring.ProducerMonitor
-
Called when the producer's output is requested; that is, when the first method is called that
requires the production of this producer's output.
- Reusable - Annotation Type in dagger
-
A scope that indicates that the object returned by a binding may be (but might not be) reused.