Index
All Classes and Interfaces|All Packages|Serialized Form
A
- activity - Variable in class dagger.hilt.android.internal.managers.ActivityComponentManager
- activity(Activity) - Method in interface dagger.hilt.android.internal.builders.ActivityComponentBuilder
- ActivityComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of the activity.
- activityComponentBuilder() - Method in interface dagger.hilt.android.internal.managers.ActivityComponentManager.ActivityComponentBuilderEntryPoint
- ActivityComponentBuilder - Interface in dagger.hilt.android.internal.builders
-
Interface for creating an
ActivityComponent
. - ActivityComponentManager - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- ActivityComponentManager(Activity) - Constructor for class dagger.hilt.android.internal.managers.ActivityComponentManager
- ActivityComponentManager.ActivityComponentBuilderEntryPoint - Interface in dagger.hilt.android.internal.managers
-
Entrypoint for
ActivityComponentBuilder
. - ActivityContext - Annotation Interface 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.
- ActivityRetainedComponentBuilder - Interface in dagger.hilt.android.internal.builders
-
Interface for creating a
ActivityRetainedComponent
. - ActivityRetainedLifecycle - Interface in dagger.hilt.android
-
A
ActivityRetainedLifecycle
class is associated with the lifecycle of theActivityRetainedComponent
. - ActivityRetainedLifecycle.OnClearedListener - Interface in dagger.hilt.android
-
Listener for receiving a callback for when the
ActivityRetainedComponent
will no longer be used and destroyed. - ActivityRetainedSavedState - Annotation Interface in dagger.hilt.android.lifecycle
-
Qualifies a binding that belongs to ActivityRetainedComponent.
- ActivityRetainedScoped - Annotation Interface in dagger.hilt.android.scopes
-
Scope annotation for bindings that should exist for the life of an activity, surviving configuration.
- ActivityScoped - Annotation Interface 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.
- addOnClearedListener(RetainedLifecycle.OnClearedListener) - Method in class dagger.hilt.android.internal.lifecycle.RetainedLifecycleImpl
- addOnClearedListener(RetainedLifecycle.OnClearedListener) - Method in interface dagger.hilt.android.lifecycle.RetainedLifecycle
-
Adds a new
RetainedLifecycle.OnClearedListener
for receiving a callback when the lifecycle is cleared. - alias() - Element in annotation interface dagger.hilt.internal.aliasof.AliasOfPropagatedData
- AliasOf - Annotation Interface in dagger.hilt.migration
-
Defines an alias between an existing Hilt scope and the annotated scope.
- AliasOfPropagatedData - Annotation Interface in dagger.hilt.internal.aliasof
-
An annotation used to aggregate AliasOf values in a common location.
- AndroidEntryPoint - Annotation Interface 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 Interface in dagger.android
-
MapKey
annotation to keyAndroidInjector.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() - 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<T> - Interface in dagger.android
-
Performs members-injection for a concrete subtype of a core Android type (e.g.,
Activity
orFragment
). - AndroidInjector.Builder<T> - Class in dagger.android
-
Deprecated.
- AndroidInjector.Factory<T> - Interface in dagger.android
-
Creates
AndroidInjector
s 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
- annotationTypeElement() - Method in class dagger.spi.model.DaggerAnnotation
- applicationBaseClass() - Element in annotation interface dagger.hilt.android.internal.testing.InternalTestRoot
-
Returns the base
Application
class. - ApplicationComponentManager - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- ApplicationComponentManager(ComponentSupplier) - Constructor for class dagger.hilt.android.internal.managers.ApplicationComponentManager
- ApplicationContext - Annotation Interface in dagger.hilt.android.qualifiers
-
Annotation for an Application Context dependency.
- ApplicationContextModule - Class in dagger.hilt.android.internal.modules
-
Provides a binding for an Android BinderFragment Context.
- ApplicationContextModule(Context) - Constructor for class dagger.hilt.android.internal.modules.ApplicationContextModule
- applicationInjector() - Method in class dagger.android.DaggerApplication
-
Implementations should return an
AndroidInjector
for the concreteDaggerApplication
. - applicationInjector() - Method in class dagger.android.support.DaggerApplication
- apply(Statement, Description) - Method in class dagger.hilt.android.internal.testing.MarkThatRulesRanRule
- apply(Statement, Description) - Method in class dagger.hilt.android.testing.HiltAndroidRule
- Assisted - Annotation Interface in dagger.assisted
-
Annotates a parameter within an
AssistedInject
-annotated constructor. - ASSISTED_FACTORY - Enum constant in enum class dagger.model.BindingKind
-
A binding for an
AssistedFactory
-annotated type. - ASSISTED_FACTORY - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for an
AssistedFactory
-annotated type. - ASSISTED_INJECTION - Enum constant in enum class dagger.model.BindingKind
-
A binding for an
Inject
-annotated constructor that contains at least oneAssisted
-annotated parameter. - ASSISTED_INJECTION - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for an
Inject
-annotated constructor that contains at least oneAssisted
-annotated parameter. - assistedFactory() - Element in annotation interface dagger.hilt.android.lifecycle.HiltViewModel
-
Returns a factory class that can be used to create this ViewModel with assisted injection.
- AssistedFactory - Annotation Interface in dagger.assisted
-
Annotates an abstract class or interface used to create an instance of a type via an
AssistedInject
constructor. - AssistedInject - Annotation Interface in dagger.assisted
-
Annotates the constuctor of a type that will be created via assisted injection.
- atRoot() - Method in class dagger.model.ComponentPath
-
Returns
true
if the ComponentPath.currentComponent() current component} is the ComponentPath.rootComponent() root component}. - atRoot() - Method in class dagger.spi.model.ComponentPath
-
Returns
true
if the ComponentPath.currentComponent() current component} is the ComponentPath.rootComponent() root component}.
B
- backend() - Method in class dagger.spi.model.BindingGraph
- backend() - Method in class dagger.spi.model.DaggerAnnotation
-
Returns the backend used in this compilation.
- backend() - Method in class dagger.spi.model.DaggerElement
-
Returns the backend used in this compilation.
- backend() - Method in class dagger.spi.model.DaggerExecutableElement
-
Returns the backend used in this compilation.
- backend() - Method in class dagger.spi.model.DaggerProcessingEnv
-
Returns the backend used in this compilation.
- backend() - Method in class dagger.spi.model.DaggerType
-
Returns the backend used in this compilation.
- backend() - Method in class dagger.spi.model.DaggerTypeElement
-
Returns the backend used in this compilation.
- BindElementsIntoSet - Annotation Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponent
as anElementsIntoSet
for the given type. - binding() - Method in interface dagger.model.Binding
-
Deprecated.This always returns
Optional.of(this)
. - binding() - Method in interface dagger.model.BindingGraph.MaybeBinding
-
The binding, or empty if missing.
- binding() - Method in class dagger.model.BindingGraph.MissingBinding
-
Deprecated.This always returns
Optional.empty()
. - binding() - Method in interface dagger.spi.model.Binding
-
Deprecated.This always returns
Optional.of(this)
. - binding() - Method in interface dagger.spi.model.BindingGraph.MaybeBinding
-
The binding, or empty if missing.
- binding() - Method in class dagger.spi.model.BindingGraph.MissingBinding
-
Deprecated.This always returns
Optional.empty()
. - Binding - Interface in dagger.model
-
The association between a
Key
and the way in which instances of the key are provided. - Binding - Interface in dagger.spi.model
-
The association between a
Key
and the way in which instances of the key are provided. - bindingElement() - Method in interface dagger.model.Binding
-
The
Element
that declares this binding. - bindingElement() - Method in class dagger.model.Key.MultibindingContributionIdentifier
-
Deprecated.This is only meant to be called from code in
dagger.internal.codegen
. It is not part of a specified API and may change at any point. - bindingElement() - Method in interface dagger.spi.model.Binding
-
The
DaggerElement
that declares this binding. - BindingGraph - Class in dagger.model
-
A graph of bindings, dependency requests, and components.
- BindingGraph - Class in dagger.spi.model
-
A graph of bindings, dependency requests, and components.
- BindingGraph() - Constructor for class dagger.model.BindingGraph
- BindingGraph() - Constructor for class dagger.spi.model.BindingGraph
- BindingGraph.ChildFactoryMethodEdge - Interface in dagger.model
-
An edge that represents a subcomponent factory method linking a parent component to a child subcomponent.
- BindingGraph.ChildFactoryMethodEdge - Interface in dagger.spi.model
-
An edge that represents a subcomponent factory method linking a parent component to a child subcomponent.
- BindingGraph.ComponentNode - Interface in dagger.model
-
A component node in the graph.
- BindingGraph.ComponentNode - Interface in dagger.spi.model
-
A component node in the graph.
- BindingGraph.DependencyEdge - Interface in dagger.model
-
An edge that represents a dependency on a binding.
- BindingGraph.DependencyEdge - Interface in dagger.spi.model
-
An edge that represents a dependency on a binding.
- BindingGraph.Edge - Interface in dagger.model
-
An edge in the binding graph.
- BindingGraph.Edge - Interface in dagger.spi.model
-
An edge in the binding graph.
- BindingGraph.MaybeBinding - Interface in dagger.model
-
A node in the binding graph that is either a
Binding
or aBindingGraph.MissingBinding
. - BindingGraph.MaybeBinding - Interface in dagger.spi.model
-
A node in the binding graph that is either a
Binding
or aBindingGraph.MissingBinding
. - BindingGraph.MissingBinding - Class in dagger.model
-
A node in the binding graph that represents a missing binding for a key in a component.
- BindingGraph.MissingBinding - Class in dagger.spi.model
-
A node in the binding graph that represents a missing binding for a key in a component.
- BindingGraph.Node - Interface in dagger.model
-
A node in the binding graph.
- BindingGraph.Node - Interface in dagger.spi.model
-
A node in the binding graph.
- BindingGraph.SubcomponentCreatorBindingEdge - Interface in dagger.model
- BindingGraph.SubcomponentCreatorBindingEdge - Interface in dagger.spi.model
- BindingGraphPlugin - Interface in dagger.spi
-
A pluggable visitor for
BindingGraph
. - BindingGraphPlugin - Interface in dagger.spi.model
-
A pluggable visitor for
BindingGraph
. - BindingKind - Enum Class in dagger.model
-
Represents the different kinds of
Binding
s that can exist in a binding graph. - BindingKind - Enum Class in dagger.spi.model
-
Represents the different kinds of
Binding
s that can exist in a binding graph. - bindingMethod() - Method in class dagger.spi.model.Key.MultibindingContributionIdentifier
-
Returns the multibinding method that defines teh multibinding contribution.
- bindings() - Method in class dagger.model.BindingGraph
-
Returns the bindings.
- bindings() - Method in class dagger.spi.model.BindingGraph
-
Returns the bindings.
- bindings(Key) - Method in class dagger.model.BindingGraph
-
Returns the bindings for a key.
- bindings(Key) - Method in class dagger.spi.model.BindingGraph
-
Returns the bindings for a key.
- 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 Interface in dagger
-
Annotates abstract methods of a
Module
that delegate bindings. - BindsInstance - Annotation Interface 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 Interface 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 Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponent
. - BindValueIntoMap - Annotation Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponent
as anIntoMap
for the given type. - BindValueIntoSet - Annotation Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponent
as anIntoSet
for the given type. - BOUND_INSTANCE - Enum constant in enum class dagger.model.BindingKind
-
A binding for a
BindsInstance
-annotated builder method. - BOUND_INSTANCE - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for a
BindsInstance
-annotated builder method. - BroadcastReceiverComponentManager - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- build() - Method in class dagger.android.AndroidInjector.Builder
-
Deprecated.Returns a newly-constructed
AndroidInjector
. - build() - Method in interface dagger.hilt.android.internal.builders.ActivityComponentBuilder
- build() - Method in interface dagger.hilt.android.internal.builders.ActivityRetainedComponentBuilder
- build() - Method in interface dagger.hilt.android.internal.builders.FragmentComponentBuilder
- build() - Method in interface dagger.hilt.android.internal.builders.ServiceComponentBuilder
- build() - Method in interface dagger.hilt.android.internal.builders.ViewComponentBuilder
- build() - Method in interface dagger.hilt.android.internal.builders.ViewModelComponentBuilder
- build() - Method in interface dagger.hilt.android.internal.builders.ViewWithFragmentComponentBuilder
- build() - Method in class dagger.model.DependencyRequest.Builder
- build() - Method in class dagger.model.Key.Builder
- build() - Method in class dagger.spi.model.DependencyRequest.Builder
- build() - Method in class dagger.spi.model.Key.Builder
- builder() - Element in annotation interface dagger.hilt.internal.definecomponent.DefineComponentClasses
-
Returns the fully qualified name of the
DefineComponent.Builder
type, or an empty string if it wasn't given. - builder() - Static method in class dagger.model.DependencyRequest
-
Returns a new builder of dependency requests.
- builder() - Static method in class dagger.spi.model.DependencyRequest
-
Returns a new builder of dependency requests.
- builder(DaggerType) - Static method in class dagger.spi.model.Key
-
Returns a builder for
Key
s. - builder(TypeMirror) - Static method in class dagger.model.Key
-
Returns a builder for
Key
s. - Builder() - Constructor for class dagger.android.AndroidInjector.Builder
-
Deprecated.
- Builder() - Constructor for class dagger.model.DependencyRequest.Builder
- Builder() - Constructor for class dagger.model.Key.Builder
- Builder() - Constructor for class dagger.spi.model.DependencyRequest.Builder
- Builder() - Constructor for class dagger.spi.model.Key.Builder
C
- CallScoped - Annotation Interface in dagger.grpc.server
-
A scope that lasts as long as a single gRPC
ServerCall
. - CancellationPolicy - Annotation Interface in dagger.producers
-
Annotates a production component or subcomponent to specify its policy when a child component is cancelled.
- CancellationPolicy.Propagation - Enum Class in dagger.producers
-
Enumeration of the options for what happens to a parent component when one of its child components is cancelled.
- childPath(DaggerTypeElement) - Method in class dagger.spi.model.ComponentPath
-
Returns the path from the root component to the
child
of the current component. - childPath(TypeElement) - Method in class dagger.model.ComponentPath
-
Returns the path from the root component to the
child
of the current component. - ClassKey - Annotation Interface in dagger.multibindings
-
A
MapKey
annotation for maps withClass<?>
keys. - clear() - Method in class dagger.hilt.android.internal.managers.SavedStateHandleHolder
- component() - Element in annotation interface dagger.hilt.internal.definecomponent.DefineComponentClasses
-
Returns the fully qualified name of the
DefineComponent
type, or an empty string if it wasn't given. - Component - Annotation Interface 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 - Enum constant in enum class dagger.model.BindingKind
-
An implicit binding for a
Component
- orProductionComponent
-annotated type. - COMPONENT - Enum constant in enum class dagger.spi.model.BindingKind
-
An implicit binding for a
Component
- orProductionComponent
-annotated type. - COMPONENT_DEPENDENCY - Enum constant in enum class dagger.model.BindingKind
-
A binding for an instance of a component's dependency.
- COMPONENT_DEPENDENCY - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for an instance of a component's dependency.
- COMPONENT_PRODUCTION - Enum constant in enum class dagger.model.BindingKind
-
A binding for a production method on a production component's
ProductionComponent#dependencies()
that returns aListenableFuture
orFluentFuture
. - COMPONENT_PRODUCTION - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for a production method on a production component's
ProductionComponent#dependencies()
that returns aListenableFuture
orFluentFuture
. - COMPONENT_PROVISION - Enum constant in enum class dagger.model.BindingKind
-
A binding for a provision method on a component's dependency.
- COMPONENT_PROVISION - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for a provision method on a component's dependency.
- Component.Builder - Annotation Interface in dagger
-
A builder for a component.
- Component.Factory - Annotation Interface in dagger
-
A factory for a component.
- componentManager() - Method in class dagger.hilt.android.testing.HiltTestApplication
- componentNode(ComponentPath) - Method in class dagger.model.BindingGraph
-
Returns the component node for a component.
- componentNode(ComponentPath) - Method in class dagger.spi.model.BindingGraph
-
Returns the component node for a component.
- componentNodes() - Method in class dagger.model.BindingGraph
-
Returns the component nodes.
- componentNodes() - Method in class dagger.spi.model.BindingGraph
-
Returns the component nodes.
- componentNodes(DaggerTypeElement) - Method in class dagger.spi.model.BindingGraph
-
Returns the component nodes for a component.
- componentNodes(TypeElement) - Method in class dagger.model.BindingGraph
-
Returns the component nodes for a component.
- componentPath() - Method in interface dagger.model.Binding
- componentPath() - Method in interface dagger.model.BindingGraph.ComponentNode
-
The component represented by this node.
- componentPath() - Method in interface dagger.model.BindingGraph.MaybeBinding
-
The component that owns the binding, or in which the binding is missing.
- componentPath() - Method in class dagger.model.BindingGraph.MissingBinding
-
The component in which the binding is missing.
- componentPath() - Method in interface dagger.model.BindingGraph.Node
-
The component this node belongs to.
- componentPath() - Method in interface dagger.spi.model.Binding
- componentPath() - Method in interface dagger.spi.model.BindingGraph.ComponentNode
-
The component represented by this node.
- componentPath() - Method in interface dagger.spi.model.BindingGraph.MaybeBinding
-
The component that owns the binding, or in which the binding is missing.
- componentPath() - Method in class dagger.spi.model.BindingGraph.MissingBinding
-
The component in which the binding is missing.
- componentPath() - Method in interface dagger.spi.model.BindingGraph.Node
-
The component this node belongs to.
- ComponentPath - Class in dagger.model
-
A path containing a component and all of its ancestor components.
- ComponentPath - Class in dagger.spi.model
-
A path containing a component and all of its ancestor components.
- ComponentPath() - Constructor for class dagger.model.ComponentPath
- ComponentPath() - Constructor for class dagger.spi.model.ComponentPath
- componentReady() - Method in class dagger.hilt.android.internal.testing.MarkThatRulesRanRule
- componentReady() - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
Completes Dagger component creation if
HiltAndroidRule.delayComponentReady()
was used. - components() - Element in annotation interface dagger.hilt.testing.TestInstallIn
-
Returns the component(s) into which the annotated module will be installed.
- components() - Method in class dagger.model.ComponentPath
-
Returns the component types, starting from the root component and ending with the current component.
- components() - Method in class dagger.spi.model.ComponentPath
-
Returns the component types, starting from the root component and ending with the current component.
- componentSupplier() - Method in class dagger.hilt.android.internal.testing.TestComponentData
-
Returns the
TestComponentData.ComponentSupplier
. - ComponentSupplier - Interface in dagger.hilt.android.internal.managers
-
Interface for supplying a component.
- ContributesAndroidInjector - Annotation Interface in dagger.android
-
Generates an
AndroidInjector
for the return type of this method. - contributingModule() - Method in interface dagger.model.Binding
-
The
TypeElement
of the module which contributes this binding. - contributingModule() - Method in interface dagger.spi.model.Binding
-
The
DaggerTypeElement
of the module which contributes this binding. - contributingModule() - Method in class dagger.spi.model.Key.MultibindingContributionIdentifier
-
Returns the module containing the multibinding method.
- 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(Class<T>) - Method in class dagger.hilt.android.internal.lifecycle.HiltViewModelFactory
- create(Class<T>, CreationExtras) - Method in class dagger.hilt.android.internal.lifecycle.HiltViewModelFactory
- create(Iterable<DaggerTypeElement>) - Static method in class dagger.spi.model.ComponentPath
-
Returns a new
ComponentPath
fromcomponents
. - create(Iterable<TypeElement>) - Static method in class dagger.model.ComponentPath
-
Returns a new
ComponentPath
fromcomponents
. - 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
- create(String) - Static method in class dagger.producers.monitoring.ProducerToken
-
Creates a token for a producer method.
- create(T) - Method in class dagger.android.AndroidInjector.Builder
-
Deprecated.
- create(T) - Method in interface dagger.android.AndroidInjector.Factory
-
Creates an
AndroidInjector
forinstance
. - createComponent() - Method in class dagger.hilt.android.internal.managers.ActivityComponentManager
- createContextWrapper(Context, Fragment) - Static method in class dagger.hilt.android.internal.managers.FragmentComponentManager
- createContextWrapper(LayoutInflater, Fragment) - Static method in class dagger.hilt.android.internal.managers.FragmentComponentManager
- createInternal(Activity, ViewModelProvider.Factory) - Static method in class dagger.hilt.android.internal.lifecycle.HiltViewModelFactory
- createInternal(Activity, SavedStateRegistryOwner, Bundle, ViewModelProvider.Factory) - Static method in class dagger.hilt.android.internal.lifecycle.HiltViewModelFactory
- CREATION_CALLBACK_KEY - Static variable in class dagger.hilt.android.internal.lifecycle.HiltViewModelFactory
-
Creation extra key for the callbacks that create @AssistedInject-annotated ViewModels.
- currentComponent() - Method in class dagger.model.ComponentPath
-
Returns the component at the end of the path.
- currentComponent() - Method in class dagger.spi.model.ComponentPath
-
Returns the component at the end of the path.
- CurrentContextModule - Class in dagger.grpc.server
-
Provides the current
Context
. - CurrentContextModule() - Constructor for class dagger.grpc.server.CurrentContextModule
- customInject() - Method in interface dagger.hilt.android.internal.migration.HasCustomInject
- CustomInject - Annotation Interface in dagger.hilt.android.migration
-
When used on a
HiltAndroidApp
-annotated application, this causes the application to no longer inject itself in onCreate and instead allows it to be injected at some other time. - CustomInjection - Class in dagger.hilt.android.migration
-
Utility methods for injecting the application when using
CustomInject
. - CustomTestApplication - Annotation Interface 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.assisted - package dagger.assisted
-
This package contains the API for Dagger's assisted injection.
- 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.flags - package dagger.hilt.android.flags
-
Runtime flags to control Hilt behavior for rollout of changes.
- dagger.hilt.android.internal.builders - package dagger.hilt.android.internal.builders
- dagger.hilt.android.internal.lifecycle - package dagger.hilt.android.internal.lifecycle
- dagger.hilt.android.internal.managers - package dagger.hilt.android.internal.managers
- dagger.hilt.android.internal.migration - package dagger.hilt.android.internal.migration
- dagger.hilt.android.internal.modules - package dagger.hilt.android.internal.modules
- dagger.hilt.android.internal.testing - package dagger.hilt.android.internal.testing
- dagger.hilt.android.lifecycle - package dagger.hilt.android.lifecycle
-
This package contains Hilt APIs for Android applications.
- 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.components - package dagger.hilt.components
-
This package contains Hilt's built-in
Component
s. - dagger.hilt.internal.aliasof - package dagger.hilt.internal.aliasof
- dagger.hilt.internal.definecomponent - package dagger.hilt.internal.definecomponent
- dagger.hilt.internal.generatesrootinput - package dagger.hilt.internal.generatesrootinput
- dagger.hilt.migration - package dagger.hilt.migration
-
This package contains APIs to help migrating a codebase to Hilt.
- dagger.hilt.testing - package dagger.hilt.testing
-
This package contains APIs for writing tests with Hilt.
- dagger.model - package dagger.model
-
This package contains the APIs that are core to Dagger's internal model of bindings and the binding graph.
- 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. - dagger.spi.model - package dagger.spi.model
-
This package contains the APIs that are core to Dagger's internal model of bindings and the binding graph.
- DaggerActivity - Class in dagger.android
-
An
Activity
that injects its members inDaggerActivity.onCreate(Bundle)
and can be used to injectFragment
s attached to it. - DaggerActivity() - Constructor for class dagger.android.DaggerActivity
- DaggerAnnotation - Class in dagger.spi.model
-
Wrapper type for an annotation.
- DaggerAnnotation() - Constructor for class dagger.spi.model.DaggerAnnotation
- DaggerAppCompatActivity - Class in dagger.android.support
-
An
AppCompatActivity
that injects its members inDaggerAppCompatActivity.onCreate(Bundle)
and can be used to injectFragment
s 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 inDaggerAppCompatDialogFragment.onAttach(Context)
and can be used to inject childFragment
s 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 - Class in dagger.android.support
-
An
invalid @link
Application
- DaggerApplication() - Constructor for class dagger.android.DaggerApplication
- DaggerApplication() - Constructor for class dagger.android.support.DaggerApplication
- DaggerBroadcastReceiver - Class in dagger.android
-
A
BroadcastReceiver
that injects its members in every call toDaggerBroadcastReceiver.onReceive(Context, Intent)
. - DaggerBroadcastReceiver() - Constructor for class dagger.android.DaggerBroadcastReceiver
- DaggerContentProvider - Class in dagger.android
-
A
ContentProvider
that injects its members inDaggerContentProvider.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-friendlydagger.android
dialog fragment implementation. - DaggerDialogFragment - Class in dagger.android.support
-
A
DialogFragment
that injects its members inDaggerDialogFragment.onAttach(Context)
and can be used to inject childFragment
s attached to it. - DaggerDialogFragment() - Constructor for class dagger.android.DaggerDialogFragment
-
Deprecated.
- DaggerDialogFragment() - Constructor for class dagger.android.support.DaggerDialogFragment
- DaggerElement - Class in dagger.spi.model
-
Wrapper type for an element.
- DaggerElement() - Constructor for class dagger.spi.model.DaggerElement
- DaggerExecutableElement - Class in dagger.spi.model
-
Wrapper type for an executable element.
- DaggerExecutableElement() - Constructor for class dagger.spi.model.DaggerExecutableElement
- DaggerFragment - Class in dagger.android
-
Deprecated.Framework fragments are deprecated in Android P; prefer
dagger.android.support.DaggerFragment
to use a support-library-friendlydagger.android
fragment implementation. - DaggerFragment - Class in dagger.android.support
-
A
Fragment
that injects its members inDaggerFragment.onAttach(Context)
and can be used to inject childFragment
s attached to it. - DaggerFragment() - Constructor for class dagger.android.DaggerFragment
-
Deprecated.
- 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 inDaggerIntentService.onCreate()
. - DaggerIntentService(String) - Constructor for class dagger.android.DaggerIntentService
- DaggerProcessingEnv - Class in dagger.spi.model
-
Wrapper type for an element.
- DaggerProcessingEnv() - Constructor for class dagger.spi.model.DaggerProcessingEnv
- DaggerProcessingEnv.Backend - Enum Class in dagger.spi.model
-
Represents a type of backend used for compilation.
- daggerRequiredModules() - Method in class dagger.hilt.android.internal.testing.TestComponentData
-
Returns the set of modules that Dagger cannot create instances of itself
- DaggerService - Class in dagger.android
-
A
Service
that injects its members inDaggerService.onCreate()
. - DaggerService() - Constructor for class dagger.android.DaggerService
- DaggerType - Class in dagger.spi.model
-
Wrapper type for a type.
- DaggerType() - Constructor for class dagger.spi.model.DaggerType
- DaggerTypeElement - Class in dagger.spi.model
-
Wrapper type for a type element.
- DaggerTypeElement() - Constructor for class dagger.spi.model.DaggerTypeElement
- declaringModules() - Method in interface dagger.model.BindingGraph.SubcomponentCreatorBindingEdge
-
The modules that declare the subcomponent that generated this edge.
- declaringModules() - Method in interface dagger.spi.model.BindingGraph.SubcomponentCreatorBindingEdge
-
The modules that declare the subcomponent that generated this edge.
- DefaultViewModelFactories - Class in dagger.hilt.android.internal.lifecycle
-
Modules and entry points for the default view model factory used by activities and fragments annotated with @AndroidEntryPoint.
- DefaultViewModelFactories.ActivityEntryPoint - Interface in dagger.hilt.android.internal.lifecycle
-
The activity entry point to retrieve the factory.
- DefaultViewModelFactories.FragmentEntryPoint - Interface in dagger.hilt.android.internal.lifecycle
-
The fragment entry point to retrieve the factory.
- DefaultViewModelFactories.InternalFactoryFactory - Class in dagger.hilt.android.internal.lifecycle
-
Internal factory for the Hilt ViewModel Factory.
- DefineComponent - Annotation Interface in dagger.hilt
-
Defines a Hilt component.
- DefineComponent.Builder - Annotation Interface in dagger.hilt
-
Defines a builder for a Hilt component.
- DefineComponentClasses - Annotation Interface in dagger.hilt.internal.definecomponent
-
An annotation used to aggregate
DefineComponent
types in a common location. - DefineComponentNoParent - Class in dagger.hilt.internal.definecomponent
-
A class used by
invalid @link
DefineComponent#parent()
- defineComponentScopes() - Element in annotation interface dagger.hilt.internal.aliasof.AliasOfPropagatedData
- delayComponentReady() - Method in class dagger.hilt.android.internal.testing.MarkThatRulesRanRule
- delayComponentReady() - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
Delays creating the component until
HiltAndroidRule.componentReady()
is called. - DELEGATE - Enum constant in enum class dagger.model.BindingKind
-
A binding for
Binds
-annotated method that delegates from requests for one key to another. - DELEGATE - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for
Binds
-annotated method that that delegates from requests for one key to another. - 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. - dependencies() - Element in annotation interface dagger.Component
-
A list of types that are to be used as component dependencies.
- dependencies() - Method in interface dagger.model.Binding
-
The dependencies of this binding.
- dependencies() - Element in annotation interface dagger.producers.ProductionComponent
-
A list of types that are to be used as component dependencies.
- dependencies() - Method in interface dagger.spi.model.Binding
-
The dependencies of this binding.
- dependencyEdges() - Method in class dagger.model.BindingGraph
-
Returns the dependency edges.
- dependencyEdges() - Method in class dagger.spi.model.BindingGraph
-
Returns the dependency edges.
- dependencyEdges(Binding) - Method in class dagger.model.BindingGraph
-
Returns the dependency edges for the dependencies of a binding.
- dependencyEdges(DependencyRequest) - Method in class dagger.model.BindingGraph
-
Returns the dependency edges for a dependency request.
- dependencyEdges(Binding) - Method in class dagger.spi.model.BindingGraph
-
Returns the dependency edges for the dependencies of a binding.
- dependencyEdges(DependencyRequest) - Method in class dagger.spi.model.BindingGraph
-
Returns the dependency edges for a dependency request.
- dependencyRequest() - Method in interface dagger.model.BindingGraph.DependencyEdge
-
The dependency request.
- dependencyRequest() - Method in interface dagger.spi.model.BindingGraph.DependencyEdge
-
The dependency request.
- DependencyRequest - Class in dagger.model
-
Represents a request for a
Key
at an injection point. - DependencyRequest - Class in dagger.spi.model
-
Represents a request for a
Key
at an injection point. - DependencyRequest() - Constructor for class dagger.model.DependencyRequest
- DependencyRequest() - Constructor for class dagger.spi.model.DependencyRequest
- DependencyRequest.Builder - Class in dagger.model
-
A builder of
DependencyRequest
s. - DependencyRequest.Builder - Class in dagger.spi.model
-
A builder of
DependencyRequest
s. - DiagnosticReporter - Class in dagger.spi.model
-
An object that
BindingGraphPlugin
s can use to report diagnostics while visiting aBindingGraph
. - DiagnosticReporter - Interface in dagger.spi
-
An object that
BindingGraphPlugin
s can use to report diagnostics while visiting aBindingGraph
. - DiagnosticReporter() - Constructor for class dagger.spi.model.DiagnosticReporter
- DisableInstallInCheck - Annotation Interface in dagger.hilt.migration
- DispatchingAndroidInjector<T> - Class in dagger.android
-
Performs members-injection on instances of core Android types (e.g.
- DispatchingAndroidInjector.InvalidInjectorBindingException - Exception Class in dagger.android
-
Exception thrown if an incorrect binding is made for a
AndroidInjector.Factory
. - dispatchOnCleared() - Method in class dagger.hilt.android.internal.lifecycle.RetainedLifecycleImpl
E
- EarlyEntryPoint - Annotation Interface in dagger.hilt.android
-
An escape hatch for when a Hilt entry point usage needs to be called before the singleton component is available in a Hilt test.
- EarlyEntryPoints - Class in dagger.hilt.android
-
Static utility methods for accessing entry points annotated with
EarlyEntryPoint
. - earlySingletonComponent() - Method in class dagger.hilt.android.internal.testing.TestApplicationComponentManager
- EarlySingletonComponentCreator - Class in dagger.hilt.android.internal.testing
-
Creates a test's early component.
- EarlySingletonComponentCreator() - Constructor for class dagger.hilt.android.internal.testing.EarlySingletonComponentCreator
- ElementsIntoSet - Annotation Interface in dagger.multibindings
-
The method's return type is
Set<T>
and all values are contributed to the set. - EntryPoint - Annotation Interface in dagger.hilt
-
Annotation for marking an interface as an entry point into a generated component.
- entryPointBindings() - Method in class dagger.model.BindingGraph
-
Returns the binding or missing binding nodes that directly satisfy entry points.
- entryPointBindings() - Method in class dagger.spi.model.BindingGraph
-
Returns the binding or missing binding nodes that directly satisfy entry points.
- entryPointEdges() - Method in class dagger.model.BindingGraph
-
Returns the dependency edges for all entry points for all components and subcomponents.
- entryPointEdges() - Method in class dagger.spi.model.BindingGraph
-
Returns the dependency edges for all entry points for all components and subcomponents.
- entryPointEdges(ComponentPath) - Method in class dagger.model.BindingGraph
-
Returns the dependency edges for the entry points of a given
component
. - entryPointEdges(ComponentPath) - Method in class dagger.spi.model.BindingGraph
-
Returns the dependency edges for the entry points of a given
component
. - entryPointEdgesDependingOnBinding(BindingGraph.MaybeBinding) - Method in class dagger.model.BindingGraph
-
Returns the edges for entry points that transitively depend on a binding or missing binding for a key.
- entryPointEdgesDependingOnBinding(BindingGraph.MaybeBinding) - Method in class dagger.spi.model.BindingGraph
-
Returns the edges for entry points that transitively depend on a binding or missing binding for a key.
- entryPoints() - Method in interface dagger.model.BindingGraph.ComponentNode
-
The entry points on this component.
- entryPoints() - Method in interface dagger.spi.model.BindingGraph.ComponentNode
-
The entry points on this component.
- EntryPoints - Class in dagger.hilt
-
Static utility methods for accessing objects through entry points.
- equals(Object) - Method in class dagger.model.ComponentPath
- equals(Object) - Method in class dagger.model.Key
- equals(Object) - Method in class dagger.model.Key.MultibindingContributionIdentifier
- 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. - equals(Object) - Method in class dagger.spi.model.ComponentPath
- equals(Object) - Method in class dagger.spi.model.Key
F
- Factory() - Constructor for class dagger.producers.monitoring.ProductionComponentMonitor.Factory
- Factory(ProductionComponentTimingRecorder.Factory) - Constructor for class dagger.producers.monitoring.TimingProductionComponentMonitor.Factory
- factoryMethod() - Method in interface dagger.model.BindingGraph.ChildFactoryMethodEdge
-
The subcomponent factory method element.
- factoryMethod() - Method in interface dagger.spi.model.BindingGraph.ChildFactoryMethodEdge
-
The subcomponent factory method element.
- 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
, whoseProduced.get()
will throw anExecutionException
with the given cause. - findActivity(Context) - Static method in class dagger.hilt.android.internal.managers.FragmentComponentManager
- ForGrpcService - Annotation Interface in dagger.grpc.server
-
Qualifies some per-service types provided by
Module
s generated byGrpcService
. - format(Key) - Method in enum class dagger.model.RequestKind
-
Returns a string that represents requests of this kind for a key.
- format(Key) - Method in enum class dagger.spi.model.RequestKind
-
Returns a string that represents requests of this kind for a key.
- fragment(Fragment) - Method in interface dagger.hilt.android.internal.builders.FragmentComponentBuilder
- FragmentComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of the fragment.
- fragmentComponentBuilder() - Method in interface dagger.hilt.android.internal.managers.FragmentComponentManager.FragmentComponentBuilderEntryPoint
- FragmentComponentBuilder - Interface in dagger.hilt.android.internal.builders
-
Interface for creating a
FragmentComponent
. - FragmentComponentManager - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- FragmentComponentManager(Fragment) - Constructor for class dagger.hilt.android.internal.managers.FragmentComponentManager
- FragmentComponentManager.FragmentComponentBuilderEntryPoint - Interface in dagger.hilt.android.internal.managers
-
Entrypoint for
FragmentComponentBuilder
. - FragmentGetContextFix - Class in dagger.hilt.android.flags
-
Runtime flag for the Fragment.getContext() fix.
- FragmentGetContextFix.DisableFragmentGetContextFix - Annotation Interface in dagger.hilt.android.flags
-
Qualifier annotation to bind disable the Fragment.getContext() fix at runtime.
- FragmentGetContextFix.FragmentGetContextFixEntryPoint - Interface in dagger.hilt.android.flags
-
Entry point for getting the flag.
- FragmentScoped - Annotation Interface in dagger.hilt.android.scopes
-
Scope annotation for bindings that should exist for the life of a fragment.
- fromSubcomponents() - Element in annotation interface dagger.producers.CancellationPolicy
-
Defines whether the annotated production component is cancelled when a child component is cancelled.
- FUTURE - Enum constant in enum class dagger.model.RequestKind
-
A request for a
ListenableFuture
. - FUTURE - Enum constant in enum class dagger.spi.model.RequestKind
-
A request for a
ListenableFuture
.
G
- generatedComponent() - Method in class dagger.hilt.android.internal.managers.ActivityComponentManager
- generatedComponent() - Method in class dagger.hilt.android.internal.managers.ApplicationComponentManager
- generatedComponent() - Method in class dagger.hilt.android.internal.managers.FragmentComponentManager
- generatedComponent() - Method in class dagger.hilt.android.internal.managers.ServiceComponentManager
- generatedComponent() - Method in class dagger.hilt.android.internal.managers.ViewComponentManager
- generatedComponent() - Method in class dagger.hilt.android.internal.testing.TestApplicationComponentManager
- generatedComponent() - Method in class dagger.hilt.android.testing.HiltTestApplication
- generatedComponent(Context) - Static method in class dagger.hilt.android.internal.managers.BroadcastReceiverComponentManager
- GeneratesRootInput - Annotation Interface in dagger.hilt
-
For annotating annotations that generate input for the
invalid @link
GenerateComponents
- GeneratesRootInputPropagatedData - Annotation Interface in dagger.hilt.internal.generatesrootinput
-
An annotation used to aggregate
GeneratesRootInput
types in a common location. - get() - Method in interface dagger.hilt.android.internal.managers.ComponentSupplier
- get() - Method in class dagger.hilt.android.internal.testing.TestComponentDataSupplier
-
Returns a
TestComponentData
. - 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.
- get(Context, Class<T>) - Static method in class dagger.hilt.android.EarlyEntryPoints
-
Returns the early entry point interface given a component manager holder.
- get(Object, Class<T>) - Static method in class dagger.hilt.EntryPoints
-
Returns the entry point interface given a component or component manager.
- get(Map<Class<?>, ?>, Object, Boolean) - Method in interface dagger.hilt.android.internal.testing.TestComponentData.ComponentSupplier
- getActivityFactory(ComponentActivity, ViewModelProvider.Factory) - Static method in class dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories
-
Retrieves the default view model factory for the activity.
- getDescription() - Method in class dagger.hilt.android.internal.testing.TestApplicationComponentManager
- getDisableFragmentGetContextFix() - Method in interface dagger.hilt.android.flags.FragmentGetContextFix.FragmentGetContextFixEntryPoint
- getFragmentFactory(Fragment, ViewModelProvider.Factory) - Static method in class dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories
-
Retrieves the default view model factory for the activity.
- getHiltInternalFactoryFactory() - Method in interface dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories.ActivityEntryPoint
- getHiltInternalFactoryFactory() - Method in interface dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories.FragmentEntryPoint
- getHiltViewModelAssistedMap() - Method in interface dagger.hilt.android.internal.lifecycle.HiltViewModelFactory.ViewModelFactoriesEntryPoint
- getHiltViewModelMap() - Method in interface dagger.hilt.android.internal.lifecycle.HiltViewModelFactory.ViewModelFactoriesEntryPoint
- getOnComponentReadyRunner() - Method in class dagger.hilt.android.internal.testing.TestApplicationComponentManager
- getOnComponentReadyRunner() - Method in interface dagger.hilt.android.testing.OnComponentReadyRunner.OnComponentReadyRunnerHolder
- getSavedStateHandleHolder() - Method in class dagger.hilt.android.internal.managers.ActivityComponentManager
- getServiceDefinition(Metadata) - Method in interface dagger.grpc.server.ProxyServerCallHandler.ServiceDefinitionFactory
-
Returns a service definition that contains a
ServerCallHandler
for theProxyServerCallHandler
's method. - getSupportedSourceVersion() - Method in class dagger.grpc.server.processor.GrpcServiceProcessor
- getSystemService(String) - Method in class dagger.hilt.android.internal.managers.ViewComponentManager.FragmentContextWrapper
- getTestInstance() - Method in class dagger.hilt.android.internal.testing.TestApplicationComponentManager
- GrpcCallMetadataModule - Class in dagger.grpc.server
-
Provides
Metadata
about a gRPC call. - GrpcCallMetadataModule(Metadata) - Constructor for class dagger.grpc.server.GrpcCallMetadataModule
- grpcClass() - Element in annotation interface dagger.grpc.server.GrpcService
-
The class that gRPC generates from the proto service definition.
- GrpcService - Annotation Interface 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
. - HasCustomInject - Interface in dagger.hilt.android.internal.migration
-
Do not use except in Hilt generated code.
- hashCode() - Method in class dagger.model.ComponentPath
- hashCode() - Method in class dagger.model.Key
- hashCode() - Method in class dagger.model.Key.MultibindingContributionIdentifier
- 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)
. - hashCode() - Method in class dagger.spi.model.ComponentPath
- hashCode() - Method in class dagger.spi.model.Key
- HiltAndroidApp - Annotation Interface 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 Interface in dagger.hilt.android.testing
-
Annotation used for marking an Android emulator tests that require injection.
- hiltRequiredModules() - Method in class dagger.hilt.android.internal.testing.TestComponentData
-
Returns a subset of
TestComponentData.daggerRequiredModules
that filters out the modules Hilt can instantiate itself. - 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
- HiltViewModel - Annotation Interface in dagger.hilt.android.lifecycle
-
Identifies a
ViewModel
for construction injection. - HiltViewModelAssistedMap - Annotation Interface in dagger.hilt.android.internal.lifecycle
-
Internal qualifier for the multibinding map of assisted factories for @AssistedInject-annotated ViewModels used by the
invalid @link
dagger.hilt.android.lifecycle.HiltViewModelFactory
- HiltViewModelFactory - Class in dagger.hilt.android.internal.lifecycle
-
View Model Provider Factory for the Hilt Extension.
- HiltViewModelFactory(Map<Class<?>, Boolean>, ViewModelProvider.Factory, ViewModelComponentBuilder) - Constructor for class dagger.hilt.android.internal.lifecycle.HiltViewModelFactory
- HiltViewModelFactory.ViewModelFactoriesEntryPoint - Interface in dagger.hilt.android.internal.lifecycle
-
Hilt entry point for getting the multi-binding map of ViewModels.
- HiltViewModelMap - Annotation Interface in dagger.hilt.android.internal.lifecycle
-
Internal qualifier for the multibinding map of ViewModels used by the
invalid @link
dagger.hilt.android.lifecycle.HiltViewModelFactory
- HiltViewModelMap.KeySet - Annotation Interface in dagger.hilt.android.internal.lifecycle
-
Internal qualifier for the multibinding set of class names annotated with @ViewModelInject.
I
- IGNORE - Enum constant in enum class dagger.producers.CancellationPolicy.Propagation
-
Do not cancel the annotated component when a child component is cancelled.
- 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.
- includes() - Element in annotation interface dagger.Module
-
Additional
@Module
-annotated classes from which this module is composed. - includes() - Element in annotation interface dagger.producers.ProducerModule
-
Additional
@ProducerModule
- orModule
-annotated classes from which this module is composed. - init(DaggerProcessingEnv, Map<String, String>) - Method in interface dagger.spi.model.BindingGraphPlugin
-
Initializes this plugin with a
DaggerProcessingEnv
. - 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. - initializeArguments(Fragment) - Static method in class dagger.hilt.android.internal.managers.FragmentComponentManager
-
Returns the fragments bundle, creating a new one if none exists.
- 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 fromBindingGraphPlugin.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() - Method in class dagger.hilt.android.internal.testing.MarkThatRulesRanRule
- inject() - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
Completes Dagger injection.
- inject(Activity) - Static method in class dagger.android.AndroidInjection
-
Injects
activity
if an associatedAndroidInjector
implementation can be found, otherwise throws anIllegalArgumentException
. - inject(Application) - Static method in class dagger.hilt.android.migration.CustomInjection
-
Injects the passed in application.
- inject(Fragment) - Static method in class dagger.android.AndroidInjection
-
Injects
fragment
if an associatedAndroidInjector
implementation can be found, otherwise throws anIllegalArgumentException
. - inject(Service) - Static method in class dagger.android.AndroidInjection
-
Injects
service
if an associatedAndroidInjector
implementation can be found, otherwise throws anIllegalArgumentException
. - inject(BroadcastReceiver, Context) - Static method in class dagger.android.AndroidInjection
-
Injects
broadcastReceiver
if an associatedAndroidInjector
implementation can be found, otherwise throws anIllegalArgumentException
. - inject(ContentProvider) - Static method in class dagger.android.AndroidInjection
-
Injects
contentProvider
if an associatedAndroidInjector
implementation can be found, otherwise throws anIllegalArgumentException
. - inject(Fragment) - Static method in class dagger.android.support.AndroidSupportInjection
-
Injects
fragment
if an associatedAndroidInjector
implementation can be found, otherwise throws anIllegalArgumentException
. - 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
. - InjectedByHilt - Interface in dagger.hilt.android.internal.migration
-
Do not use except in Hilt generated code!
- INJECTION - Enum constant in enum class dagger.model.BindingKind
-
A binding for an
Inject
-annotated constructor. - INJECTION - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for an
Inject
-annotated constructor. - injectMembers(T) - Method in interface dagger.MembersInjector
-
Injects dependencies into the fields and methods of
instance
. - injectTest(T) - Method in interface dagger.hilt.android.internal.testing.TestInjector
- InProcessServerModule - Class in dagger.grpc.server
-
Installing this module into a
@Singleton
component means the component can provide aServer
that serves in-process requests. - InstallIn - Annotation Interface in dagger.hilt
-
An annotation that declares which component(s) the annotated class should be included in when Hilt generates the components.
- INSTANCE - Enum constant in enum class dagger.model.RequestKind
-
A default request for an instance.
- INSTANCE - Enum constant in enum class dagger.spi.model.RequestKind
-
A default request for an instance.
- InternalTestRoot - Annotation Interface in dagger.hilt.android.internal.testing
-
Annotation that generates a Hilt test application.
- IntKey - Annotation Interface in dagger.multibindings
-
A
MapKey
annotation for maps withint
keys. - IntoMap - Annotation Interface 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 Interface 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
- isEntryPoint() - Method in interface dagger.model.BindingGraph.DependencyEdge
-
Returns
true
if this edge represents an entry point. - isEntryPoint() - Method in interface dagger.spi.model.BindingGraph.DependencyEdge
-
Returns
true
if this edge represents an entry point. - isFragmentGetContextFixDisabled(Context) - Static method in class dagger.hilt.android.flags.FragmentGetContextFix
- isFullBindingGraph() - Method in class dagger.model.BindingGraph
-
Returns
true
if this is a full binding graph, which contains all bindings installed in the component, orfalse
if it is a reachable binding graph, which contains only bindings that are reachable from at least one entry point. - isFullBindingGraph() - Method in class dagger.spi.model.BindingGraph
-
Returns
true
if this is a full binding graph, which contains all bindings installed in the component, orfalse
if it is a reachable binding graph, which contains only bindings that are reachable from at least one entry point. - isInvalid() - Method in class dagger.hilt.android.internal.managers.SavedStateHandleHolder
- isModuleBindingGraph() - Method in class dagger.model.BindingGraph
-
Deprecated.use
BindingGraph.isFullBindingGraph()
to tell if this is a full binding graph, orrootComponentNode().isRealComponent()
to tell if the root component node is really a component or derived from a module. Dagger can generate full binding graphs for components and subcomponents as well as modules. - isModuleBindingGraph() - Method in class dagger.spi.model.BindingGraph
-
Deprecated.use
BindingGraph.isFullBindingGraph()
to tell if this is a full binding graph, orrootComponentNode().isRealComponent()
to tell if the root component node is really a component or derived from a module. Dagger can generate full binding graphs for components and subcomponents as well as modules. - isMultibinding() - Method in enum class dagger.model.BindingKind
-
Returns
true
if this is a kind of multibinding (not a contribution to a multibinding, but the multibinding itself). - isMultibinding() - Method in enum class dagger.spi.model.BindingKind
-
Returns
true
if this is a kind of multibinding (not a contribution to a multibinding, but the multibinding itself). - isNullable() - Method in interface dagger.model.Binding
-
Returns
true
if this binding may providenull
instead of an instance ofBindingGraph.MaybeBinding.key()
. - isNullable() - Method in class dagger.model.DependencyRequest
-
Returns
true
if this request allows null objects. - isNullable() - Method in interface dagger.spi.model.Binding
-
Returns
true
if this binding may providenull
instead of an instance ofBindingGraph.MaybeBinding.key()
. - isNullable() - Method in class dagger.spi.model.DependencyRequest
-
Returns
true
if this request allows null objects. - isNullable(boolean) - Method in class dagger.model.DependencyRequest.Builder
- isNullable(boolean) - Method in class dagger.spi.model.DependencyRequest.Builder
- isPartialBindingGraph() - Method in class dagger.model.BindingGraph
-
Deprecated.use
rootComponentNode().isSubcomponent()
instead - isPartialBindingGraph() - Method in class dagger.spi.model.BindingGraph
-
Deprecated.use
rootComponentNode().isSubcomponent()
instead - isProduction() - Method in interface dagger.model.Binding
-
Returns
true
if this is a production binding, e.g. - isProduction() - Method in interface dagger.spi.model.Binding
-
Returns
true
if this is a production binding, e.g. - isProductionScope() - Method in class dagger.model.Scope
-
Returns
true
if this scope is the@ProductionScope
scope. - isProductionScope() - Method in class dagger.spi.model.Scope
-
Returns
true
if this scope is the@ProductionScope
scope. - isRealComponent() - Method in interface dagger.model.BindingGraph.ComponentNode
-
Returns
true
if the component is a real component, orfalse
if it is a fictional component based on a module. - isRealComponent() - Method in interface dagger.spi.model.BindingGraph.ComponentNode
-
Returns
true
if the component is a real component, orfalse
if it is a fictional component based on a module. - isReusable() - Method in class dagger.model.Scope
-
Returns
true
if this scope is the@Reusable
scope. - isReusable() - Method in class dagger.spi.model.Scope
-
Returns
true
if this scope is the@Reusable
scope. - isScope(DaggerAnnotation) - Static method in class dagger.spi.model.Scope
- isScope(DaggerTypeElement) - Static method in class dagger.spi.model.Scope
-
Returns
true
ifscopeAnnotationType
is aScope
annotation. - isScope(AnnotationMirror) - Static method in class dagger.model.Scope
- isScope(TypeElement) - Static method in class dagger.model.Scope
-
Returns
true
ifscopeAnnotationType
is aScope
annotation. - isSingleton() - Method in class dagger.model.Scope
-
Returns
true
if this scope is the@Singleton
scope. - isSingleton() - Method in class dagger.spi.model.Scope
-
Returns
true
if this scope is the@Singleton
scope. - isSubcomponent() - Method in interface dagger.model.BindingGraph.ComponentNode
-
Returns
true
if the component is a@Subcomponent
or@ProductionSubcomponent
. - isSubcomponent() - Method in interface dagger.spi.model.BindingGraph.ComponentNode
-
Returns
true
if the component is a@Subcomponent
or@ProductionSubcomponent
.
J
- javac() - Method in class dagger.spi.model.DaggerAnnotation
-
Returns the Javac representation for the annotation.
- javac() - Method in class dagger.spi.model.DaggerElement
-
Returns the Javac representation for the element.
- javac() - Method in class dagger.spi.model.DaggerExecutableElement
-
Returns the Javac representation for the executable element.
- javac() - Method in class dagger.spi.model.DaggerProcessingEnv
-
Returns the Javac representation for the processing environment.
- javac() - Method in class dagger.spi.model.DaggerType
-
Returns the Javac representation for the type.
- javac() - Method in class dagger.spi.model.DaggerTypeElement
-
Returns the Javac representation for the type element.
- JAVAC - Enum constant in enum class dagger.spi.model.DaggerProcessingEnv.Backend
K
- key() - Method in interface dagger.model.BindingGraph.MaybeBinding
-
The key of the binding, or for which there is no binding.
- key() - Method in class dagger.model.BindingGraph.MissingBinding
-
The key for which there is no binding.
- key() - Method in class dagger.model.DependencyRequest
-
The key of this request.
- key() - Method in interface dagger.spi.model.BindingGraph.MaybeBinding
-
The key of the binding, or for which there is no binding.
- key() - Method in class dagger.spi.model.BindingGraph.MissingBinding
-
The key for which there is no binding.
- key() - Method in class dagger.spi.model.DependencyRequest
-
The key of this request.
- key(Key) - Method in class dagger.model.DependencyRequest.Builder
- key(Key) - Method in class dagger.spi.model.DependencyRequest.Builder
- Key - Class in dagger.model
-
A type and an optional qualifier that is the lookup key for a binding.
- Key - Class in dagger.spi.model
-
A type and an optional qualifier that is the lookup key for a binding.
- Key() - Constructor for class dagger.model.Key
- Key() - Constructor for class dagger.spi.model.Key
- Key.Builder - Class in dagger.model
-
A builder for
Key
s. - Key.Builder - Class in dagger.spi.model
-
A builder for
Key
s. - Key.MultibindingContributionIdentifier - Class in dagger.model
-
An object that identifies a multibinding contribution method and the module class that contributes it to the graph.
- Key.MultibindingContributionIdentifier - Class in dagger.spi.model
-
An object that identifies a multibinding contribution method and the module class that contributes it to the graph.
- kind() - Method in interface dagger.model.Binding
-
The kind of binding this instance represents.
- kind() - Method in class dagger.model.DependencyRequest
-
The kind of this request.
- kind() - Method in interface dagger.spi.model.Binding
-
The kind of binding this instance represents.
- kind() - Method in class dagger.spi.model.DependencyRequest
-
The kind of this request.
- kind(RequestKind) - Method in class dagger.model.DependencyRequest.Builder
- kind(RequestKind) - Method in class dagger.spi.model.DependencyRequest.Builder
- ksp() - Method in class dagger.spi.model.DaggerAnnotation
-
Returns the KSP representation for the annotation.
- ksp() - Method in class dagger.spi.model.DaggerElement
-
Returns the KSP representation for the element.
- ksp() - Method in class dagger.spi.model.DaggerExecutableElement
-
Returns the KSP representation for the executable element.
- ksp() - Method in class dagger.spi.model.DaggerProcessingEnv
-
Returns the KSP representation for the processing environment.
- ksp() - Method in class dagger.spi.model.DaggerType
-
Returns the KSP representation for the type.
- ksp() - Method in class dagger.spi.model.DaggerTypeElement
-
Returns the KSP representation for the type element.
- KSP - Enum constant in enum class dagger.spi.model.DaggerProcessingEnv.Backend
L
- Lazy<T> - Interface in dagger
-
A handle to a lazily-computed value.
- LAZY - Enum constant in enum class dagger.model.RequestKind
-
A request for a
Lazy
. - LAZY - Enum constant in enum class dagger.spi.model.RequestKind
-
A request for a
Lazy
. - LazyClassKey - Annotation Interface in dagger.multibindings
-
A
MapKey
annotation for maps withClass<?>
keys. - LongKey - Annotation Interface in dagger.multibindings
-
A
MapKey
annotation for maps withlong
keys.
M
- MapKey - Annotation Interface in dagger
-
Identifies annotation types that are used to associate keys with values returned by provider methods in order to compose a map.
- MarkThatRulesRanRule - Class in dagger.hilt.android.internal.testing
-
A Junit
TestRule
that's installed in all Hilt tests. - MarkThatRulesRanRule(Object) - Constructor for class dagger.hilt.android.internal.testing.MarkThatRulesRanRule
- maybeGetParentComponentManager() - Method in class dagger.hilt.android.internal.managers.ViewComponentManager
- maybeInject(T) - Method in class dagger.android.DispatchingAndroidInjector
-
Attempts to perform members-injection on
instance
, returningtrue
if successful,false
otherwise. - MEMBERS_INJECTION - Enum constant in enum class dagger.model.BindingKind
-
A binding for a members injection method on a component.
- MEMBERS_INJECTION - Enum constant in enum class dagger.model.RequestKind
-
A request for a members injection.
- MEMBERS_INJECTION - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for a members injection method on a component.
- MEMBERS_INJECTION - Enum constant in enum class dagger.spi.model.RequestKind
-
A request for a members injection.
- MEMBERS_INJECTOR - Enum constant in enum class dagger.model.BindingKind
-
A binding for a
MembersInjector
of a type. - MEMBERS_INJECTOR - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for a
MembersInjector
of a type. - 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.
- MissingBinding() - Constructor for class dagger.model.BindingGraph.MissingBinding
- MissingBinding() - Constructor for class dagger.spi.model.BindingGraph.MissingBinding
- missingBindings() - Method in class dagger.model.BindingGraph
-
Returns the nodes that represent missing bindings.
- missingBindings() - Method in class dagger.spi.model.BindingGraph
-
Returns the nodes that represent missing bindings.
- module() - Method in class dagger.model.Key.MultibindingContributionIdentifier
-
Deprecated.This is only meant to be called from code in
dagger.internal.codegen
. It is not part of a specified API and may change at any point. - Module - Annotation Interface in dagger
-
Annotates a class that contributes to the object graph.
- modules() - Element in annotation interface dagger.android.ContributesAndroidInjector
-
Modules to be installed in the generated
Subcomponent
. - modules() - Element in annotation interface dagger.Component
-
A list of classes annotated with
Module
whose bindings are used to generate the component implementation. - modules() - Element in annotation interface dagger.producers.ProductionComponent
-
A list of classes annotated with
Module
orProducerModule
whose bindings are used to generate the component implementation. - modules() - Element in annotation interface dagger.producers.ProductionSubcomponent
-
A list of classes annotated with
Module
orProducerModule
whose bindings are used to generate the subcomponent implementation. - modules() - Element in annotation interface dagger.Subcomponent
-
A list of classes annotated with
Module
whose bindings are used to generate the subcomponent implementation. - multibindingContributionIdentifier() - Method in class dagger.model.Key
-
Distinguishes keys for multibinding contributions that share a
Key.type()
andKey.qualifier()
. - multibindingContributionIdentifier() - Method in class dagger.spi.model.Key
-
Distinguishes keys for multibinding contributions that share a
Key.type()
andKey.qualifier()
. - multibindingContributionIdentifier(Key.MultibindingContributionIdentifier) - Method in class dagger.model.Key.Builder
- multibindingContributionIdentifier(DaggerTypeElement, DaggerExecutableElement) - Method in class dagger.spi.model.Key.Builder
- multibindingContributionIdentifier(Optional<Key.MultibindingContributionIdentifier>) - Method in class dagger.model.Key.Builder
- MultibindingContributionIdentifier() - Constructor for class dagger.spi.model.Key.MultibindingContributionIdentifier
- MultibindingContributionIdentifier(String, String) - Constructor for class dagger.model.Key.MultibindingContributionIdentifier
-
Deprecated.
- MultibindingContributionIdentifier(ExecutableElement, TypeElement) - Constructor for class dagger.model.Key.MultibindingContributionIdentifier
-
Deprecated.This is only meant to be called from code in
dagger.internal.codegen
. It is not part of a specified API and may change at any point. - Multibinds - Annotation Interface in dagger.multibindings
-
Annotates abstract module methods that declare multibindings.
- MULTIBOUND_MAP - Enum constant in enum class dagger.model.BindingKind
-
A synthetic binding for a multibound map that depends on the individual multibinding
BindingKind.PROVISION
orBindingKind.PRODUCTION
contributions. - MULTIBOUND_MAP - Enum constant in enum class dagger.spi.model.BindingKind
-
A synthetic binding for a multibound map that depends on the individual multibinding
BindingKind.PROVISION
orBindingKind.PRODUCTION
contributions. - MULTIBOUND_SET - Enum constant in enum class dagger.model.BindingKind
-
A synthetic binding for a multibound set that depends on individual multibinding
BindingKind.PROVISION
orBindingKind.PRODUCTION
contributions. - MULTIBOUND_SET - Enum constant in enum class dagger.spi.model.BindingKind
-
A synthetic binding for a multibound set that depends on individual multibinding
BindingKind.PROVISION
orBindingKind.PRODUCTION
contributions.
N
- NettyServerModule - Class in dagger.grpc.server
-
Installing this module into a
@Singleton
component means the component can provide a Netty-basedServer
. - network() - Method in class dagger.model.BindingGraph
-
Returns the graph in its
Network
representation. - network() - Method in class dagger.spi.model.BindingGraph
-
Returns the graph in its
Network
representation. - nodesByClass() - Method in class dagger.model.BindingGraph
- nodesByClass() - Method in class dagger.spi.model.BindingGraph
- 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
- onCleared() - Method in interface dagger.hilt.android.lifecycle.RetainedLifecycle.OnClearedListener
- 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
invalid @link
TestApplicationComponentManager
- 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.DaggerActivity
- onCreate(Bundle) - Method in class dagger.android.support.DaggerAppCompatActivity
- onPluginEnd() - Method in interface dagger.spi.BindingGraphPlugin
-
Perform any extra work after the plugin finished all its visiting.
- onPluginEnd() - Method in interface dagger.spi.model.BindingGraphPlugin
-
Perform any extra work after the plugin finished all its visiting.
- onProcessingRoundBegin() - Method in interface dagger.spi.model.BindingGraphPlugin
-
Runs before each round of Dagger annotation processing.
- onReceive(Context, Intent) - Method in class dagger.android.DaggerBroadcastReceiver
- OPTIONAL - Enum constant in enum class dagger.model.BindingKind
- OPTIONAL - Enum constant in enum class dagger.spi.model.BindingKind
- OptionalInject - Annotation Interface 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 withOptionalInject
was injected by Hilt. - OriginatingElement - Annotation Interface in dagger.hilt.codegen
-
An annotation used to specify the originating element that triggered the code generation of a type.
P
- parent() - Element in annotation interface dagger.hilt.DefineComponent
-
Returns the parent of this component, if it exists.
- parent() - Method in class dagger.model.ComponentPath
-
Returns this path's parent path.
- parent() - Method in class dagger.spi.model.ComponentPath
-
Returns this path's parent path.
- parentComponent() - Method in class dagger.model.ComponentPath
-
Returns the parent of the ComponentPath.currentComponent() current component}.
- parentComponent() - Method in class dagger.spi.model.ComponentPath
-
Returns the parent of the ComponentPath.currentComponent() current component}.
- pluginName() - Method in interface dagger.spi.BindingGraphPlugin
-
A distinguishing name of the plugin that will be used in diagnostics printed to the
Messager
. - pluginName() - Method in interface dagger.spi.model.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. - PRODUCED - Enum constant in enum class dagger.model.RequestKind
-
A request for a
Produced
. - PRODUCED - Enum constant in enum class dagger.spi.model.RequestKind
-
A request for a
Produced
. - Producer<T> - Interface in dagger.producers
-
An interface that represents the production of a type
T
. - PRODUCER - Enum constant in enum class dagger.model.RequestKind
-
A request for a
Producer
. - PRODUCER - Enum constant in enum class dagger.spi.model.RequestKind
-
A request for a
Producer
. - ProducerModule - Annotation Interface 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
Producer
s. - 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 Interface in dagger.producers
-
Annotates methods of a producer module to create a production binding.
- Production - Annotation Interface in dagger.producers
-
Qualifies a type that will be provided to the framework for use internally.
- PRODUCTION - Enum constant in enum class dagger.model.BindingKind
-
A binding for a
Produces
-annotated method. - PRODUCTION - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for a
Produces
-annotated method. - ProductionComponent - Annotation Interface 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 Interface in dagger.producers
-
A builder for a production component.
- ProductionComponent.Factory - Annotation Interface 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 Interface in dagger.producers
-
A scope annotation for provision bindings that are tied to the lifetime of a
ProductionComponent
orProductionSubcomponent
. - ProductionSubcomponent - Annotation Interface in dagger.producers
-
A subcomponent that inherits the bindings from a parent
Component
,Subcomponent
,ProductionComponent
, orProductionSubcomponent
. - ProductionSubcomponent.Builder - Annotation Interface in dagger.producers
-
A builder for a production subcomponent.
- ProductionSubcomponent.Factory - Annotation Interface in dagger.producers
-
A factory for a production subcomponent.
- PROPAGATE - Enum constant in enum class dagger.producers.CancellationPolicy.Propagation
-
Cancel the annotated component when a child component is cancelled.
- PROVIDER - Enum constant in enum class dagger.model.RequestKind
-
A request for a
Provider
. - PROVIDER - Enum constant in enum class dagger.spi.model.RequestKind
-
A request for a
Provider
. - PROVIDER_OF_LAZY - Enum constant in enum class dagger.model.RequestKind
-
A request for a
Provider
of aLazy
. - PROVIDER_OF_LAZY - Enum constant in enum class dagger.spi.model.RequestKind
-
A request for a
Provider
of aLazy
. - Provides - Annotation Interface in dagger
-
Annotates methods of a module to create a provider method binding.
- PROVISION - Enum constant in enum class dagger.model.BindingKind
-
A binding for a
Provides
-annotated method. - PROVISION - Enum constant in enum class dagger.spi.model.BindingKind
-
A binding for a
Provides
-annotated method. - 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 aServerServiceDefinition
returned by a factory. - ProxyServerCallHandler.ServiceDefinitionFactory - Interface in dagger.grpc.server
-
A factory for the
ServerServiceDefinition
that aProxyServerCallHandler
delegates to.
Q
- qualifier() - Method in class dagger.model.Key
-
A
Qualifier
annotation that provides a unique namespace prefix for the type of this key. - qualifier() - Method in class dagger.spi.model.Key
-
A
Qualifier
annotation that provides a unique namespace prefix for the type of this key. - qualifier(DaggerAnnotation) - Method in class dagger.spi.model.Key.Builder
- qualifier(Optional<DaggerAnnotation>) - Method in class dagger.spi.model.Key.Builder
- qualifier(Optional<AnnotationMirror>) - Method in class dagger.model.Key.Builder
- qualifier(AnnotationMirror) - Method in class dagger.model.Key.Builder
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.
- registerModule(Class<T>, T) - Method in class dagger.hilt.android.internal.testing.TestApplicationComponentManager
-
For framework use only! This method should be called when a required module is installed.
- removeOnClearedListener(RetainedLifecycle.OnClearedListener) - Method in class dagger.hilt.android.internal.lifecycle.RetainedLifecycleImpl
- removeOnClearedListener(RetainedLifecycle.OnClearedListener) - Method in interface dagger.hilt.android.lifecycle.RetainedLifecycle
-
Removes a
RetainedLifecycle.OnClearedListener
previously added viaRetainedLifecycle.addOnClearedListener(OnClearedListener)
. - replaces() - Element in annotation interface dagger.hilt.testing.TestInstallIn
-
Returns the
invalid @link
InstallIn
- 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.
- reportBinding(Diagnostic.Kind, BindingGraph.MaybeBinding, String) - Method in class dagger.spi.model.DiagnosticReporter
-
Reports a diagnostic for a binding or missing binding.
- reportBinding(Diagnostic.Kind, BindingGraph.MaybeBinding, String, Object, Object...) - Method in class dagger.spi.model.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.
- reportComponent(Diagnostic.Kind, BindingGraph.ComponentNode, String) - Method in class dagger.spi.model.DiagnosticReporter
-
Reports a diagnostic for a component.
- reportComponent(Diagnostic.Kind, BindingGraph.ComponentNode, String, Object, Object...) - Method in class dagger.spi.model.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.
- reportDependency(Diagnostic.Kind, BindingGraph.DependencyEdge, String) - Method in class dagger.spi.model.DiagnosticReporter
-
Reports a diagnostic for a dependency.
- reportDependency(Diagnostic.Kind, BindingGraph.DependencyEdge, String, Object, Object...) - Method in class dagger.spi.model.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.
- reportSubcomponentFactoryMethod(Diagnostic.Kind, BindingGraph.ChildFactoryMethodEdge, String) - Method in class dagger.spi.model.DiagnosticReporter
-
Reports a diagnostic for a subcomponent factory method.
- reportSubcomponentFactoryMethod(Diagnostic.Kind, BindingGraph.ChildFactoryMethodEdge, String, Object, Object...) - Method in class dagger.spi.model.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.
- requestedBindings(Binding) - Method in class dagger.model.BindingGraph
-
Returns the bindings that a given binding directly requests as a dependency.
- requestedBindings(Binding) - Method in class dagger.spi.model.BindingGraph
-
Returns the bindings that a given binding directly requests as a dependency.
- requestedMaybeMissingBindings(Binding) - Method in class dagger.model.BindingGraph
-
Returns the bindings or missing bindings that a given binding directly requests as a dependency.
- requestedMaybeMissingBindings(Binding) - Method in class dagger.spi.model.BindingGraph
-
Returns the bindings or missing bindings that a given binding directly requests as a dependency.
- requestElement() - Method in class dagger.model.DependencyRequest
-
The element that declares this dependency request.
- requestElement() - Method in class dagger.spi.model.DependencyRequest
-
The element that declares this dependency request.
- requestElement(DaggerElement) - Method in class dagger.spi.model.DependencyRequest.Builder
- requestElement(Element) - Method in class dagger.model.DependencyRequest.Builder
- requestingBindings(BindingGraph.MaybeBinding) - Method in class dagger.model.BindingGraph
-
Returns the bindings that directly request a given binding as a dependency.
- requestingBindings(BindingGraph.MaybeBinding) - Method in class dagger.spi.model.BindingGraph
-
Returns the bindings that directly request a given binding as a dependency.
- RequestKind - Enum Class in dagger.model
-
Represents the different kinds of
types
that may be requested as dependencies for the same key. - RequestKind - Enum Class in dagger.spi.model
-
Represents the different kinds of
types
that may be requested as dependencies for the same key. - requiresModuleInstance() - Method in interface dagger.model.Binding
-
Returns
true
if using this binding requires an instance of theBinding.contributingModule()
. - requiresModuleInstance() - Method in interface dagger.spi.model.Binding
-
Returns
true
if using this binding requires an instance of theBinding.contributingModule()
. - resolver() - Method in class dagger.spi.model.DaggerProcessingEnv
-
Returns the KSP representation for the resolver.
- RetainedLifecycle - Interface in dagger.hilt.android.lifecycle
-
A class for registered listeners on a retained lifecycle (generally backed up by a ViewModel).
- RetainedLifecycle.OnClearedListener - Interface in dagger.hilt.android.lifecycle
-
Listener for when the retained lifecycle is cleared.
- RetainedLifecycleImpl - Class in dagger.hilt.android.internal.lifecycle
-
Internal implementation.
- RetainedLifecycleImpl() - Constructor for class dagger.hilt.android.internal.lifecycle.RetainedLifecycleImpl
- Reusable - Annotation Interface in dagger
-
A scope that indicates that the object returned by a binding may be (but might not be) reused.
- rootComponent() - Method in class dagger.model.ComponentPath
-
Returns the root
Component
- orProductionComponent
-annotated type - rootComponent() - Method in class dagger.spi.model.ComponentPath
-
Returns the root
Component
- orProductionComponent
-annotated type - rootComponentNode() - Method in class dagger.model.BindingGraph
-
Returns the component node for the root component.
- rootComponentNode() - Method in class dagger.spi.model.BindingGraph
-
Returns the component node for the root component.
S
- savedStateHandle(SavedStateHandle) - Method in interface dagger.hilt.android.internal.builders.ViewModelComponentBuilder
- savedStateHandleHolder(SavedStateHandleHolder) - Method in interface dagger.hilt.android.internal.builders.ActivityRetainedComponentBuilder
- SavedStateHandleHolder - Class in dagger.hilt.android.internal.managers
-
Implementation for SavedStateHandleHolder.
- scope() - Method in interface dagger.model.Binding
-
The scope of this binding if it has one.
- scope() - Method in interface dagger.spi.model.Binding
-
The scope of this binding if it has one.
- scope(DaggerAnnotation) - Static method in class dagger.spi.model.Scope
-
Creates a
Scope
object from theScope
-annotated annotation type. - scope(AnnotationMirror) - Static method in class dagger.model.Scope
-
Creates a
Scope
object from theScope
-annotated annotation type. - Scope - Class in dagger.model
-
A representation of a
Scope
. - Scope - Class in dagger.spi.model
-
A representation of a
Scope
. - Scope() - Constructor for class dagger.model.Scope
- Scope() - Constructor for class dagger.spi.model.Scope
- scopeAnnotation() - Method in class dagger.model.Scope
-
The
AnnotationMirror
that represents the scope annotation. - scopeAnnotation() - Method in class dagger.spi.model.Scope
-
The
DaggerAnnotation
that represents the scope annotation. - scopeAnnotationElement() - Method in class dagger.model.Scope
-
The scope annotation element.
- scopes() - Method in interface dagger.model.BindingGraph.ComponentNode
-
The scopes declared on this component.
- scopes() - Method in interface dagger.spi.model.BindingGraph.ComponentNode
-
The scopes declared on this component.
- seedInstance(T) - Method in class dagger.android.AndroidInjector.Builder
-
Deprecated.Provides
instance
to be used in the binding graph of the builtAndroidInjector
. - 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
- service(Service) - Method in interface dagger.hilt.android.internal.builders.ServiceComponentBuilder
- ServiceComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of the service.
- serviceComponentBuilder() - Method in interface dagger.hilt.android.internal.managers.ServiceComponentManager.ServiceComponentBuilderEntryPoint
- ServiceComponentBuilder - Interface in dagger.hilt.android.internal.builders
-
Interface for creating a
ServiceComponent
. - ServiceComponentManager - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- ServiceComponentManager(Service) - Constructor for class dagger.hilt.android.internal.managers.ServiceComponentManager
- ServiceComponentManager.ServiceComponentBuilderEntryPoint - Interface in dagger.hilt.android.internal.managers
-
Entrypoint for
ServiceComponentBuilder
. - ServiceScoped - Annotation Interface 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.
- setExtras(CreationExtras) - Method in class dagger.hilt.android.internal.managers.SavedStateHandleHolder
- SingletonComponent - Interface in dagger.hilt.components
-
A Hilt component for singleton bindings.
- SkipTestInjection - Annotation Interface in dagger.hilt.android.testing
-
Annotation used for skipping test injection in a Hilt Android Test.
- startCall(ServerCall<InputStream, InputStream>, Metadata) - Method in class dagger.grpc.server.ProxyServerCallHandler
- StringKey - Annotation Interface in dagger.multibindings
- Subcomponent - Annotation Interface in dagger
-
A subcomponent that inherits the bindings from a parent
Component
orSubcomponent
. - SUBCOMPONENT_CREATOR - Enum constant in enum class dagger.model.BindingKind
- SUBCOMPONENT_CREATOR - Enum constant in enum class dagger.spi.model.BindingKind
- Subcomponent.Builder - Annotation Interface in dagger
-
A builder for a subcomponent.
- Subcomponent.Factory - Annotation Interface in dagger
-
A factory for a subcomponent.
- subcomponents() - Element in annotation interface dagger.Module
-
Any
Subcomponent
- or@ProductionSubcomponent
-annotated classes which should be children of the component in which this module is installed. - subcomponents() - Element in annotation interface dagger.producers.ProducerModule
-
Any
Subcomponent
- orProductionSubcomponent
-annotated classes which should be children of the component in which this module is installed. - 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
, whoseProduced.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.
- supportedOptions() - Method in interface dagger.spi.model.BindingGraphPlugin
-
Returns the annotation-processing options that this plugin uses to configure behavior.
T
- TestApplicationComponentManager - Class in dagger.hilt.android.internal.testing
-
Do not use except in Hilt generated code!
- TestApplicationComponentManager(Application) - Constructor for class dagger.hilt.android.internal.testing.TestApplicationComponentManager
- TestApplicationComponentManagerHolder - Interface in dagger.hilt.android.internal.testing
-
For use by Hilt internally only! Returns the component manager.
- testClass() - Element in annotation interface dagger.hilt.android.internal.testing.InternalTestRoot
-
Returns the test class.
- TestComponentData - Class in dagger.hilt.android.internal.testing
-
Contains the data needed to create a test's component.
- TestComponentData(boolean, TestInjector<Object>, Set<Class<?>>, Set<Class<?>>, TestComponentData.ComponentSupplier) - Constructor for class dagger.hilt.android.internal.testing.TestComponentData
- TestComponentData.ComponentSupplier - Interface in dagger.hilt.android.internal.testing
-
Returns the component using the given registered modules.
- TestComponentDataSupplier - Class in dagger.hilt.android.internal.testing
-
Stores the
TestComponentData
for a Hilt test class. - TestComponentDataSupplier() - Constructor for class dagger.hilt.android.internal.testing.TestComponentDataSupplier
- testInjector() - Method in class dagger.hilt.android.internal.testing.TestComponentData
-
Returns the
TestInjector
. - TestInjector<T> - Interface in dagger.hilt.android.internal.testing
-
Interface to expose a method for members injection for use in tests.
- TestInstallIn - Annotation Interface in dagger.hilt.testing
-
An annotation that replaces one or more
InstallIn
modules with the annotated module in tests. - 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.
- toBuilder() - Method in class dagger.model.Key
-
Returns a
Key.Builder
that inherits the properties of this key. - topLevelClass() - Element in annotation interface dagger.hilt.codegen.OriginatingElement
-
Returns the top-level class enclosing the originating element.
- toString() - Method in class dagger.model.BindingGraph.MissingBinding
- toString() - Method in class dagger.model.BindingGraph
- toString() - Method in class dagger.model.ComponentPath
- toString() - Method in class dagger.model.Key.MultibindingContributionIdentifier
- toString() - Method in class dagger.model.Key
- toString() - Method in class dagger.model.Scope
-
Returns a debug representation of the scope.
- toString() - Method in class dagger.producers.monitoring.ProducerToken
-
Returns a representation of the method.
- toString() - Method in class dagger.spi.model.BindingGraph.MissingBinding
- toString() - Method in class dagger.spi.model.BindingGraph
- toString() - Method in class dagger.spi.model.ComponentPath
- toString() - Method in class dagger.spi.model.Key.MultibindingContributionIdentifier
- toString() - Method in class dagger.spi.model.Key
- toString() - Method in class dagger.spi.model.Scope
-
Returns a debug representation of the scope.
- type() - Method in class dagger.model.Key
-
The type represented by this key.
- type() - Method in class dagger.spi.model.Key
-
The type represented by this key.
- type(DaggerType) - Method in class dagger.spi.model.Key.Builder
- type(TypeMirror) - Method in class dagger.model.Key.Builder
U
- UninstallModules - Annotation Interface in dagger.hilt.android.testing
-
An annotation used to uninstall modules that have previously been installed with
InstallIn
. - UnstableApi - Annotation Interface in dagger.hilt.android
-
Mark unstable Api usage.
- unwrapValue() - Element in annotation interface dagger.MapKey
-
True to use the value of the single member of the annotated annotation as the map key; false to use the annotation instance as the map key.
V
- validate(Fragment) - Method in class dagger.hilt.android.internal.managers.FragmentComponentManager
-
Called immediately before component creation to allow validation on the Fragment.
- value() - Element in annotation interface dagger.android.AndroidInjectionKey
-
The fully qualified class name of the type to be injected.
- value() - Element in annotation interface dagger.assisted.Assisted
-
Returns an identifier for an
Assisted
parameter. - value() - Element in annotation interface dagger.grpc.server.ForGrpcService
-
The gRPC service class.
- value() - Element in annotation interface dagger.hilt.android.AndroidEntryPoint
-
The base class for the generated Hilt class.
- value() - Element in annotation interface dagger.hilt.android.HiltAndroidApp
-
The base class for the generated Hilt application.
- value() - Element in annotation interface dagger.hilt.android.testing.CustomTestApplication
-
Returns the base
Application
class. - value() - Element in annotation interface dagger.hilt.android.testing.UninstallModules
-
Returns the list of classes to uninstall.
- value() - Element in annotation interface dagger.hilt.InstallIn
- value() - Element in annotation interface dagger.hilt.internal.generatesrootinput.GeneratesRootInputPropagatedData
- value() - Element in annotation interface dagger.hilt.migration.AliasOf
-
Returns the existing Hilt scope(s) that the annotated scope is aliasing.
- value() - Element in annotation interface dagger.multibindings.ClassKey
- value() - Element in annotation interface dagger.multibindings.IntKey
- value() - Element in annotation interface dagger.multibindings.LazyClassKey
- value() - Element in annotation interface dagger.multibindings.LongKey
- value() - Element in annotation interface dagger.multibindings.StringKey
- valueOf(String) - Static method in enum class dagger.model.BindingKind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dagger.model.RequestKind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dagger.producers.CancellationPolicy.Propagation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dagger.spi.model.BindingKind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dagger.spi.model.DaggerProcessingEnv.Backend
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dagger.spi.model.RequestKind
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dagger.model.BindingKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dagger.model.RequestKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dagger.producers.CancellationPolicy.Propagation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dagger.spi.model.BindingKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dagger.spi.model.DaggerProcessingEnv.Backend
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dagger.spi.model.RequestKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- view(View) - Method in interface dagger.hilt.android.internal.builders.ViewComponentBuilder
- view(View) - Method in interface dagger.hilt.android.internal.builders.ViewWithFragmentComponentBuilder
- ViewComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of the view.
- viewComponentBuilder() - Method in interface dagger.hilt.android.internal.managers.ViewComponentManager.ViewComponentBuilderEntryPoint
- ViewComponentBuilder - Interface in dagger.hilt.android.internal.builders
-
Interface for creating a
ViewComponent
. - ViewComponentManager - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- ViewComponentManager(View, boolean) - Constructor for class dagger.hilt.android.internal.managers.ViewComponentManager
- ViewComponentManager.FragmentContextWrapper - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- ViewComponentManager.ViewComponentBuilderEntryPoint - Interface in dagger.hilt.android.internal.managers
-
Entrypoint for
ViewComponentBuilder
. - ViewComponentManager.ViewWithFragmentComponentBuilderEntryPoint - Interface in dagger.hilt.android.internal.managers
-
Entrypoint for
ViewWithFragmentComponentBuilder
. - ViewModelComponent - Interface in dagger.hilt.android.components
-
A Hilt component that has the lifetime of a single
ViewModel
. - ViewModelComponentBuilder - Interface in dagger.hilt.android.internal.builders
-
Interface for creating a
ViewModelComponent
. - viewModelLifecycle(ViewModelLifecycle) - Method in interface dagger.hilt.android.internal.builders.ViewModelComponentBuilder
- ViewModelLifecycle - Interface in dagger.hilt.android
-
A class for registering listeners on the ViewModel lifecycle.
- ViewModelScoped - Annotation Interface in dagger.hilt.android.scopes
-
Scope annotation for bindings that should exist for the life of a a single
ViewModel
. - ViewScoped - Annotation Interface 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.
- viewWithFragmentComponentBuilder() - Method in interface dagger.hilt.android.internal.managers.ViewComponentManager.ViewWithFragmentComponentBuilderEntryPoint
- ViewWithFragmentComponentBuilder - Interface in dagger.hilt.android.internal.builders
-
Interface for creating a
ViewWithFragmentComponent
. - visitGraph(BindingGraph, DiagnosticReporter) - Method in interface dagger.spi.BindingGraphPlugin
-
Called once for each valid root binding graph encountered by the Dagger processor.
- visitGraph(BindingGraph, DiagnosticReporter) - Method in interface dagger.spi.model.BindingGraphPlugin
-
Called once for each valid root binding graph encountered by the Dagger processor.
W
- waitForBindValue() - Method in class dagger.hilt.android.internal.testing.TestComponentData
-
Returns true if creation of the component needs to wait for bind() to be called.
- wasInjectedByHilt() - Method in interface dagger.hilt.android.internal.migration.InjectedByHilt
-
Returns true if this class 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(BroadcastReceiver) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
-
Returns true if the BroadcastReceiver was injected by Hilt.
- wasInjectedByHilt(View) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
-
Returns true if the View was injected by Hilt.
- wasInjectedByHilt(ComponentActivity) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
-
Returns true if the Activity was injected by Hilt.
- wasInjectedByHilt(Fragment) - Static method in class dagger.hilt.android.migration.OptionalInjectCheck
-
Returns true if the Fragment was injected by Hilt.
- WithFragmentBindings - Annotation Interface in dagger.hilt.android
-
Makes a View annotated with
AndroidEntryPoint
have access to fragment bindings. - withMultibindingContributionIdentifier(DaggerTypeElement, DaggerExecutableElement) - Method in class dagger.spi.model.Key
-
Returns a copy of this key with the multibinding contribution identifier replaced with the given multibinding contribution identifier.
- withoutMultibindingContributionIdentifier() - Method in class dagger.spi.model.Key
-
Returns a copy of this key with the multibinding contribution identifier, if any, removed.
- withType(DaggerType) - Method in class dagger.spi.model.Key
-
Returns a copy of this key with the type replaced with the given type.
All Classes and Interfaces|All Packages|Serialized Form
AndroidInjector.Factory
now that components can havefactories
instead of builders