Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

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
MapKey annotation to key AndroidInjector.Factory bindings.
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
Returns an AndroidInjector.
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
Deprecated.
Prefer AndroidInjector.Factory now that components can have factories instead of builders
AndroidInjector.Factory<T> - Interface in dagger.android
Creates AndroidInjectors for a concrete subtype of a core Android type.
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
Implementations should return an AndroidInjector for the concrete 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
 

B

BindElementsIntoSet - Annotation Type in dagger.hilt.android.testing
An annotation that can be used on a test field to contribute the value into the ApplicationComponent as an ElementsIntoSet for the given type.
BindingGraphPlugin - Interface in dagger.spi
A pluggable visitor for BindingGraph.
bindingTo(SocketAddress) - Static method in class dagger.grpc.server.NettyServerModule
A module that binds to socketAddress.
bindingToPort(int) - Static method in class dagger.grpc.server.NettyServerModule
A module that binds to port on the wildcard address.
Binds - Annotation Type in dagger
Annotates abstract methods of a Module that delegate bindings.
BindsInstance - Annotation Type in dagger
Marks a method on a component builder or a parameter on a component factory as binding an instance to some key within the component.
BindsOptionalOf - Annotation Type in dagger
Annotates methods that declare bindings for Optional containers of values from bindings that may or may not be present in the component.
BindValue - Annotation Type in dagger.hilt.android.testing
An annotation that can be used on a test field to contribute the value into the ApplicationComponent.
BindValueIntoMap - Annotation Type in dagger.hilt.android.testing
An annotation that can be used on a test field to contribute the value into the ApplicationComponent as an IntoMap for the given type.
BindValueIntoSet - Annotation Type in dagger.hilt.android.testing
An annotation that can be used on a test field to contribute the value into the ApplicationComponent as an IntoSet for the given type.
build() - Method in class dagger.android.AndroidInjector.Builder
Deprecated.
Returns a newly-constructed AndroidInjector.
Builder() - Constructor for class dagger.android.AndroidInjector.Builder
Deprecated.
 

C

CallScoped - Annotation Type in dagger.grpc.server
A scope that lasts as long as a single gRPC ServerCall.
CancellationPolicy - Annotation Type in dagger.producers
Annotates a production component or subcomponent to specify its policy when a child component is cancelled.
CancellationPolicy.Propagation - Enum in dagger.producers
Enumeration of the options for what happens to a parent component when one of its child components is cancelled.
ClassKey - Annotation Type in dagger.multibindings
A MapKey annotation for maps with Class<?> keys.
Component - Annotation Type in dagger
Annotates an interface or abstract class for which a fully-formed, dependency-injected implementation is to be generated from a set of Component.modules().
Component.Builder - Annotation Type in dagger
A builder for a component.
Component.Factory - Annotation Type in dagger
A factory for a component.
componentManager() - Method in class dagger.hilt.android.testing.HiltTestApplication
 
ContributesAndroidInjector - Annotation Type in dagger.android
Generates an AndroidInjector for the return type of this method.
create(T) - Method in class dagger.android.AndroidInjector.Builder
Deprecated.
 
create(T) - Method in interface dagger.android.AndroidInjector.Factory
Creates an AndroidInjector for instance.
create(Class<?>) - Static method in class dagger.producers.monitoring.ProducerToken
Creates a token for a class token that represents the generated factory for a producer method.
create(String) - Static method in class dagger.producers.monitoring.ProducerToken
Creates a token for a producer method.
create(Object) - Method in class dagger.producers.monitoring.ProductionComponentMonitor.Factory
Creates a component-specific monitor when the component is created.
create(Object) - Method in interface dagger.producers.monitoring.ProductionComponentTimingRecorder.Factory
Creates a component-specific timing recorder when the component is created.
create(Object) - Method in class dagger.producers.monitoring.TimingProductionComponentMonitor.Factory
 
CurrentContextModule - Class in dagger.grpc.server
Provides the current Context.
CurrentContextModule() - Constructor for class dagger.grpc.server.CurrentContextModule
 
CustomTestApplication - Annotation Type in dagger.hilt.android.testing
An annotation that creates an application with the given base type that can be used for any test in the given build.

D

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 Components 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
An Activity that injects its members in DaggerActivity.onCreate(Bundle) and can be used to inject Fragments attached to it.
DaggerActivity() - Constructor for class dagger.android.DaggerActivity
 
DaggerAppCompatActivity - Class in dagger.android.support
An AppCompatActivity that injects its members in DaggerAppCompatActivity.onCreate(Bundle) and can be used to inject Fragments attached to it.
DaggerAppCompatActivity() - Constructor for class dagger.android.support.DaggerAppCompatActivity
 
DaggerAppCompatActivity(int) - Constructor for class dagger.android.support.DaggerAppCompatActivity
 
DaggerAppCompatDialogFragment - Class in dagger.android.support
An AppCompatDialogFragment that injects its members in DaggerAppCompatDialogFragment.onAttach(Context) and can be used to inject child Fragments attached to it.
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
A BroadcastReceiver that injects its members in every call to DaggerBroadcastReceiver.onReceive(Context, Intent).
DaggerBroadcastReceiver() - Constructor for class dagger.android.DaggerBroadcastReceiver
 
DaggerContentProvider - Class in dagger.android
A ContentProvider that injects its members in DaggerContentProvider.onCreate().
DaggerContentProvider() - Constructor for class dagger.android.DaggerContentProvider
 
DaggerDialogFragment - Class in dagger.android
Deprecated.
Framework fragments are deprecated in Android P; prefer dagger.android.support.DaggerDialogFragment to use a support-library-friendly dagger.android dialog fragment implementation.
DaggerDialogFragment() - Constructor for class dagger.android.DaggerDialogFragment
Deprecated.
 
DaggerDialogFragment - Class in dagger.android.support
A DialogFragment that injects its members in DaggerDialogFragment.onAttach(Context) and can be used to inject child Fragments attached to it.
DaggerDialogFragment() - Constructor for class dagger.android.support.DaggerDialogFragment
 
DaggerFragment - Class in dagger.android
Deprecated.
Framework fragments are deprecated in Android P; prefer dagger.android.support.DaggerFragment to use a support-library-friendly dagger.android fragment implementation.
DaggerFragment() - Constructor for class dagger.android.DaggerFragment
Deprecated.
 
DaggerFragment - Class in dagger.android.support
A Fragment that injects its members in DaggerFragment.onAttach(Context) and can be used to inject child Fragments attached to it.
DaggerFragment() - Constructor for class dagger.android.support.DaggerFragment
 
DaggerFragment(int) - Constructor for class dagger.android.support.DaggerFragment
 
DaggerIntentService - Class in dagger.android
An IntentService that injects its members in DaggerIntentService.onCreate().
DaggerIntentService(String) - Constructor for class dagger.android.DaggerIntentService
 
DaggerService - Class in dagger.android
A Service that injects its members in DaggerService.onCreate().
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 BindingGraphPlugins 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
Exception thrown if an incorrect binding is made for a AndroidInjector.Factory.

E

ElementsIntoSet - Annotation Type in dagger.multibindings
The method's return type is Set<T> and all values are contributed to the set.
EntryPoint - Annotation Type in dagger.hilt
Annotation for marking an interface as an entry point into a generated component.
EntryPointAccessors - Class in dagger.hilt.android
Static utility methods for dealing with entry points for standard Android components.
EntryPoints - Class in dagger.hilt
Static utility methods for accessing objects through entry points.
equals(Object) - Method in class dagger.producers.monitoring.ProducerToken
Two tokens are equal if they represent the same method.
equals(Object) - Method in class dagger.producers.Produced
Two Produced objects compare equal if both are successful with equal values, or both are failed with equal exceptions.

F

Factory() - Constructor for class dagger.producers.monitoring.ProductionComponentMonitor.Factory
 
Factory(ProductionComponentTimingRecorder.Factory) - Constructor for class dagger.producers.monitoring.TimingProductionComponentMonitor.Factory
 
failed(Throwable) - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer's future has failed with an exception.
failed(Throwable) - Static method in class dagger.producers.Produced
Returns a failed Produced, whose Produced.get() will throw an ExecutionException with the given cause.
ForGrpcService - Annotation Type in dagger.grpc.server
Qualifies some per-service types provided by Modules generated by GrpcService.
FragmentComponent - Interface in dagger.hilt.android.components
A Hilt component that has the lifetime of the fragment.
FragmentScoped - Annotation Type in dagger.hilt.android.scopes
Scope annotation for bindings that should exist for the life of a fragment.
fromActivity(Activity, Class<T>) - Static method in class dagger.hilt.android.EntryPointAccessors
Returns the entry point interface from an activity.
fromApplication(Context, Class<T>) - Static method in class dagger.hilt.android.EntryPointAccessors
Returns the entry point interface from an application.
fromFragment(Fragment, Class<T>) - Static method in class dagger.hilt.android.EntryPointAccessors
Returns the entry point interface from a fragment.
fromView(View, Class<T>) - Static method in class dagger.hilt.android.EntryPointAccessors
Returns the entry point interface from a view.

G

GenerateComponents - Annotation Type in dagger.hilt
Annotation for marking the root of a build where the Dagger components should be generated.
generatedComponent() - Method in class dagger.hilt.android.testing.HiltTestApplication
 
GeneratesRootInput - Annotation Type in dagger.hilt
For annotating annotations that generate input for the GenerateComponents.
get(Object, Class<T>) - Static method in class dagger.hilt.EntryPoints
Returns the entry point interface given a component or component manager.
get() - Method in interface dagger.Lazy
Return the underlying value, computing the value if necessary.
get() - Method in class dagger.producers.Produced
Returns the result of a production.
get() - Method in interface dagger.producers.Producer
Returns a future representing a running task that produces a value.
getOnComponentReadyRunner() - Method in interface dagger.hilt.android.testing.OnComponentReadyRunner.OnComponentReadyRunnerHolder
 
getServiceDefinition(Metadata) - Method in interface dagger.grpc.server.ProxyServerCallHandler.ServiceDefinitionFactory
Returns a service definition that contains a ServerCallHandler for the ProxyServerCallHandler's method.
getSupportedSourceVersion() - Method in class dagger.grpc.server.processor.GrpcServiceProcessor
 
GrpcCallMetadataModule - Class in dagger.grpc.server
Provides Metadata about a gRPC call.
GrpcCallMetadataModule(Metadata) - Constructor for class dagger.grpc.server.GrpcCallMetadataModule
 
GrpcService - Annotation Type in dagger.grpc.server
Annotates a class that implements a gRPC service.
GrpcServiceProcessor - Class in dagger.grpc.server.processor
Generates code from types annotated with @GrpcService.
GrpcServiceProcessor() - Constructor for class dagger.grpc.server.processor.GrpcServiceProcessor
 

H

HasAndroidInjector - Interface in dagger.android
Provides an AndroidInjector.
hashCode() - Method in class dagger.producers.monitoring.ProducerToken
Returns an appropriate hash code to match ProducerToken.equals(Object).
hashCode() - Method in class dagger.producers.Produced
Returns an appropriate hash code to match Produced.equals(Object).
HiltAndroidApp - Annotation Type in dagger.hilt.android
Annotation for marking the Application class where the Dagger components should be generated.
HiltAndroidRule - Class in dagger.hilt.android.testing
A TestRule for Hilt that can be used with JVM or Instrumentation tests.
HiltAndroidRule(Object) - Constructor for class dagger.hilt.android.testing.HiltAndroidRule
Creates a new instance of the rules.
HiltAndroidTest - Annotation Type in dagger.hilt.android.testing
Annotation used for marking an Android emulator tests that require injection.
HiltTestApplication - Class in dagger.hilt.android.testing
An application that can be used for Android instrumentation or Robolectric tests using Hilt.
HiltTestApplication() - Constructor for class dagger.hilt.android.testing.HiltTestApplication
 

I

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
Initializes this plugin with a filtered view of the options passed on the javac command-line for all keys from BindingGraphPlugin.supportedOptions().
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
 

L

Lazy<T> - Interface in dagger
A handle to a lazily-computed value.
LongKey - Annotation Type in dagger.multibindings
A MapKey annotation for maps with long keys.

M

MapKey - Annotation Type in dagger
Identifies annotation types that are used to associate keys with values returned by provider methods in order to compose a map.
maybeInject(T) - Method in class dagger.android.DispatchingAndroidInjector
Attempts to perform members-injection on instance, returning true if successful, false otherwise.
MembersInjector<T> - Interface in dagger
Injects dependencies into the fields and methods on instances of type T.
methodFinished() - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer method has finished executing.
methodStarting() - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer method is about to start executing.
Module - Annotation Type in dagger
Annotates a class that contributes to the object graph.
Multibinds - Annotation Type in dagger.multibindings
Annotates abstract module methods that declare multibindings.

N

NettyServerModule - Class in dagger.grpc.server
Installing this module into a @Singleton component means the component can provide a Netty-based Server.
noOp() - Static method in class dagger.producers.monitoring.ProducerMonitor
Returns a monitor that does no monitoring.
noOp() - Static method in class dagger.producers.monitoring.ProducerTimingRecorder
Returns a producer recorder that does nothing.
noOp() - Static method in class dagger.producers.monitoring.ProductionComponentMonitor.Factory
Returns a factory that returns no-op monitors.
noOp() - Static method in class dagger.producers.monitoring.ProductionComponentMonitor
Returns a monitor that does no monitoring.
noOpProductionComponentTimingRecorder() - Static method in class dagger.producers.monitoring.TimingRecorders
Returns a component recorder that returns no-op producer recorders.
noOpProductionComponentTimingRecorderFactory() - Static method in class dagger.producers.monitoring.TimingRecorders
Returns a recorder factory that returns no-op component recorders.

O

of(String) - Static method in class dagger.android.internal.AndroidInjectionKeys
Accepts the fully qualified name of a class that is injected with dagger.android.
onAttach(Context) - Method in class dagger.android.DaggerDialogFragment
Deprecated.
 
onAttach(Context) - Method in class dagger.android.DaggerFragment
Deprecated.
 
onAttach(Context) - Method in class dagger.android.support.DaggerAppCompatDialogFragment
 
onAttach(Context) - Method in class dagger.android.support.DaggerDialogFragment
 
onAttach(Context) - Method in class dagger.android.support.DaggerFragment
 
onComponentReady(T) - Method in interface dagger.hilt.android.testing.OnComponentReadyRunner.OnComponentReadyListener
 
OnComponentReadyRunner - Class in dagger.hilt.android.testing
Provides access to the Singleton component in tests, so that Rules can access it after custom test modules have been added.
OnComponentReadyRunner() - Constructor for class dagger.hilt.android.testing.OnComponentReadyRunner
 
OnComponentReadyRunner.OnComponentReadyListener<T> - Interface in dagger.hilt.android.testing
Rules should register an implementation of this to get access to the singleton component
OnComponentReadyRunner.OnComponentReadyRunnerHolder - Interface in dagger.hilt.android.testing
Public for use by generated code and TestApplicationComponentManager
onCreate(Bundle) - Method in class dagger.android.DaggerActivity
 
onCreate() - Method in class dagger.android.DaggerApplication
 
onCreate() - Method in class dagger.android.DaggerContentProvider
 
onCreate() - Method in class dagger.android.DaggerIntentService
 
onCreate() - Method in class dagger.android.DaggerService
 
onCreate(Bundle) - Method in class dagger.android.support.DaggerAppCompatActivity
 
onReceive(Context, Intent) - Method in class dagger.android.DaggerBroadcastReceiver
 
OptionalInject - Annotation Type in dagger.hilt.android.migration
When placed on an AndroidEntryPoint-annotated activity / fragment / view / etc, allows injection to occur optionally based on whether or not the application is using Hilt.
OptionalInjectCheck - Class in dagger.hilt.android.migration
Utility methods for validating if an AndroidEntryPoint-annotated class that is also annotated with OptionalInject was injected by Hilt.
OriginatingElement - Annotation Type in dagger.hilt.codegen
An annotation used to specify the originating element that triggered the code generation of a type.

P

pluginName() - Method in interface dagger.spi.BindingGraphPlugin
A distinguishing name of the plugin that will be used in diagnostics printed to the Messager.
process(SetMultimap<Class<? extends Annotation>, Element>) - Method in class dagger.grpc.server.processor.GrpcServiceProcessor
 
Produced<T> - Class in dagger.producers
An interface that represents the result of a production of type T, or an exception that was thrown during that production.
Producer<T> - Interface in dagger.producers
An interface that represents the production of a type T.
ProducerModule - Annotation Type in dagger.producers
Annotates a class that contributes Produces bindings to the production component.
ProducerMonitor - Class in dagger.producers.monitoring
A hook for monitoring the execution of individual producer methods.
ProducerMonitor() - Constructor for class dagger.producers.monitoring.ProducerMonitor
 
producerMonitorFor(ProducerToken) - Method in class dagger.producers.monitoring.ProductionComponentMonitor
Returns a monitor for an individual producer method.
producerMonitorFor(ProducerToken) - Method in class dagger.producers.monitoring.TimingProductionComponentMonitor
 
Producers - Class in dagger.producers
Utility methods to create Producers.
ProducerTimingRecorder - Class in dagger.producers.monitoring
A hook for recording the timing of the execution of individual producer methods.
ProducerTimingRecorder() - Constructor for class dagger.producers.monitoring.ProducerTimingRecorder
 
producerTimingRecorderFor(ProducerToken) - Method in interface dagger.producers.monitoring.ProductionComponentTimingRecorder
Returns a timing recorder for an individual producer method.
ProducerToken - Class in dagger.producers.monitoring
A token that represents an individual producer method.
Produces - Annotation Type in dagger.producers
Annotates methods of a producer module to create a production binding.
Production - Annotation Type in dagger.producers
Qualifies a type that will be provided to the framework for use internally.
ProductionComponent - Annotation Type in dagger.producers
Annotates an interface or abstract class for which a fully-formed, dependency-injected implementation is to be generated from a set of modules.
ProductionComponent.Builder - Annotation Type in dagger.producers
A builder for a production component.
ProductionComponent.Factory - Annotation Type in dagger.producers
A factory for a production component.
ProductionComponentMonitor - Class in dagger.producers.monitoring
A hook for monitoring execution of production components.
ProductionComponentMonitor() - Constructor for class dagger.producers.monitoring.ProductionComponentMonitor
 
ProductionComponentMonitor.Factory - Class in dagger.producers.monitoring
 
ProductionComponentTimingRecorder - Interface in dagger.producers.monitoring
A hook for recording timing of the execution of production components.
ProductionComponentTimingRecorder.Factory - Interface in dagger.producers.monitoring
 
ProductionScope - Annotation Type in dagger.producers
A scope annotation for provision bindings that are tied to the lifetime of a ProductionComponent or ProductionSubcomponent.
ProductionSubcomponent - Annotation Type in dagger.producers
A subcomponent that inherits the bindings from a parent Component, Subcomponent, ProductionComponent, or ProductionSubcomponent.
ProductionSubcomponent.Builder - Annotation Type in dagger.producers
A builder for a production subcomponent.
ProductionSubcomponent.Factory - Annotation Type in dagger.producers
A factory for a production subcomponent.
Provides - Annotation Type in dagger
Annotates methods of a module to create a provider method binding.
proxyMethod(MethodDescriptor<RequestT, ResponseT>, ProxyServerCallHandler.ServiceDefinitionFactory) - Static method in class dagger.grpc.server.ProxyServerCallHandler
Returns a proxy method definition for methodDescriptor.
ProxyServerCallHandler<RequestT,ResponseT> - Class in dagger.grpc.server
A ServerCallHandler that handles calls for a particular method by delegating to a handler in a ServerServiceDefinition returned by a factory.
ProxyServerCallHandler.ServiceDefinitionFactory - Interface in dagger.grpc.server
A factory for the ServerServiceDefinition that a ProxyServerCallHandler delegates to.

R

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.

S

seedInstance(T) - Method in class dagger.android.AndroidInjector.Builder
Deprecated.
Provides instance to be used in the binding graph of the built AndroidInjector.
ServerModule - Class in dagger.grpc.server
Provides a @Singleton Server.
ServerModule() - Constructor for class dagger.grpc.server.ServerModule
 
serverNamed(String) - Static method in class dagger.grpc.server.InProcessServerModule
Creates a module that provides a server that binds to a given name
ServiceComponent - Interface in dagger.hilt.android.components
A Hilt component that has the lifetime of the service.
ServiceScoped - Annotation Type in dagger.hilt.android.scopes
Scope annotation for bindings that should exist for the life of a service.
setComponentManager(GeneratedComponentManager<?>) - Method in class dagger.hilt.android.testing.OnComponentReadyRunner
Used by generated code, to notify listeners that the component has been created.
startCall(ServerCall<InputStream, InputStream>, Metadata) - Method in class dagger.grpc.server.ProxyServerCallHandler
 
StringKey - Annotation Type in dagger.multibindings
A MapKey annotation for maps with String keys.
Subcomponent - Annotation Type in dagger
A subcomponent that inherits the bindings from a parent Component or Subcomponent.
Subcomponent.Builder - Annotation Type in dagger
A builder for a subcomponent.
Subcomponent.Factory - Annotation Type in dagger
A factory for a subcomponent.
succeeded(Object) - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer’s future has completed successfully with a value.
successful(T) - Static method in class dagger.producers.Produced
Returns a successful Produced, whose Produced.get() will return the given value.
supportedOptions() - Method in interface dagger.spi.BindingGraphPlugin
Returns the annotation-processing options that this plugin uses to configure behavior.

T

TimingProductionComponentMonitor - Class in dagger.producers.monitoring
A monitor that measures the timing of the execution of a production component, and logs those timings with the given recorder.
TimingProductionComponentMonitor.Factory - Class in dagger.producers.monitoring
 
TimingRecorders - Class in dagger.producers.monitoring
Utility methods relating to timing.
toString() - Method in class dagger.producers.monitoring.ProducerToken
Returns a representation of the method.

U

UninstallModules - Annotation Type in dagger.hilt.android.testing
An annotation used to uninstall modules that have previously been installed with InstallIn.

V

valueOf(String) - Static method in enum dagger.producers.CancellationPolicy.Propagation
Returns the enum constant of this type with the specified name.
values() - Static method in enum dagger.producers.CancellationPolicy.Propagation
Returns an array containing the constants of this enum type, in the order they are declared.
ViewComponent - Interface in dagger.hilt.android.components
A Hilt component that has the lifetime of the view.
ViewScoped - Annotation Type in dagger.hilt.android.scopes
Scope annotation for bindings that should exist for the life of a View.
ViewWithFragmentComponent - Interface in dagger.hilt.android.components
A Hilt component that has the lifetime of the view.
visitGraph(BindingGraph, DiagnosticReporter) - Method in interface dagger.spi.BindingGraphPlugin
Called once for each valid root binding graph encountered by the Dagger processor.

W

wasInjectedByHilt(ComponentActivity) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
Returns true if the Activity was injected by Hilt.
wasInjectedByHilt(BroadcastReceiver) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
Returns true if the BroadcastReceiver was injected by Hilt.
wasInjectedByHilt(Fragment) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
Returns true if the Fragment was injected by Hilt.
wasInjectedByHilt(Service) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
Returns true if the Service was injected by Hilt.
wasInjectedByHilt(View) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
Returns true if the View was injected by Hilt.
WithFragmentBindings - Annotation Type in dagger.hilt.android
Makes a View annotated with AndroidEntryPoint have access to fragment bindings.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links