Index
All Classes and Interfaces|All Packages
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.
- 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. - AndroidEntryPoint - Annotation Interface in dagger.hilt.android
-
Marks an Android component class to be setup for injection with the standard Hilt Dagger Android components.
- 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
- 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.
B
- BroadcastReceiverComponentManager - Class in dagger.hilt.android.internal.managers
-
Do not use except in Hilt generated code!
- 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
C
- clear() - Method in class dagger.hilt.android.internal.managers.SavedStateHandleHolder
- ComponentSupplier - Interface in dagger.hilt.android.internal.managers
-
Interface for supplying a component.
- 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
- 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.
- 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
.
D
- 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.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. - 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.
- 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
.
F
- findActivity(Context) - Static method in class dagger.hilt.android.internal.managers.FragmentComponentManager
- 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.
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(Context) - Static method in class dagger.hilt.android.internal.managers.BroadcastReceiverComponentManager
- get() - Method in interface dagger.hilt.android.internal.managers.ComponentSupplier
- get(Context, Class<T>) - Static method in class dagger.hilt.android.EarlyEntryPoints
-
Returns the early entry point interface given a component manager holder.
- getActivityFactory(ComponentActivity, ViewModelProvider.Factory) - Static method in class dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories
-
Retrieves the default view model factory for the activity.
- 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
- getSavedStateHandleHolder() - Method in class dagger.hilt.android.internal.managers.ActivityComponentManager
- getSystemService(String) - Method in class dagger.hilt.android.internal.managers.ViewComponentManager.FragmentContextWrapper
H
- HasCustomInject - Interface in dagger.hilt.android.internal.migration
-
Do not use except in Hilt generated code.
- HiltAndroidApp - Annotation Interface in dagger.hilt.android
-
Annotation for marking the
Application
class where the Dagger components should be generated. - 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
- initializeArguments(Fragment) - Static method in class dagger.hilt.android.internal.managers.FragmentComponentManager
-
Returns the fragments bundle, creating a new one if none exists.
- inject(Application) - Static method in class dagger.hilt.android.migration.CustomInjection
-
Injects the passed in application.
- InjectedByHilt - Interface in dagger.hilt.android.internal.migration
-
Do not use except in Hilt generated code!
- isFragmentGetContextFixDisabled(Context) - Static method in class dagger.hilt.android.flags.FragmentGetContextFix
- isInvalid() - Method in class dagger.hilt.android.internal.managers.SavedStateHandleHolder
M
- maybeGetParentComponentManager() - Method in class dagger.hilt.android.internal.managers.ViewComponentManager
O
- onCleared() - Method in interface dagger.hilt.android.lifecycle.RetainedLifecycle.OnClearedListener
- 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.
R
- 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)
. - 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
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.
- 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.
- setExtras(CreationExtras) - Method in class dagger.hilt.android.internal.managers.SavedStateHandleHolder
U
- UnstableApi - Annotation Interface in dagger.hilt.android
-
Mark unstable Api usage.
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.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.
- 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
.
W
- 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.
All Classes and Interfaces|All Packages