Package | Description |
---|---|
dagger.hilt |
This package contains the core APIs for Hilt.
|
dagger.hilt.android |
This package contains Hilt APIs for Android applications.
|
dagger.hilt.android.testing |
This package contains APIs for writing Android local or instrumentation tests with Hilt.
|
dagger.hilt.migration |
This package contains APIs to help migrating a codebase to Hilt.
|
Modifier and Type | Class and Description |
---|---|
interface |
DefineComponent
Defines a Hilt component.
|
static interface |
DefineComponent.Builder
Defines a builder for a Hilt component.
|
interface |
EntryPoint
Annotation for marking an interface as an entry point into a generated component.
|
interface |
InstallIn
An annotation that declares which component(s) the annotated class should be included in when
Hilt generates the components.
|
Modifier and Type | Class and Description |
---|---|
interface |
AndroidEntryPoint
Marks an Android component class to be setup for injection with the standard Hilt Dagger Android
components.
|
interface |
HiltAndroidApp
Annotation for marking the
Application class where the Dagger components
should be generated. |
Modifier and Type | Class and Description |
---|---|
interface |
BindElementsIntoSet
An annotation that can be used on a test field to contribute the value into the
ApplicationComponent as an ElementsIntoSet for the given type. |
interface |
BindValue
An annotation that can be used on a test field to contribute the value into the
ApplicationComponent . |
interface |
BindValueIntoMap
An annotation that can be used on a test field to contribute the value into the
ApplicationComponent as an IntoMap
for the given type. |
interface |
BindValueIntoSet
An annotation that can be used on a test field to contribute the value into the
ApplicationComponent as an IntoSet
for the given type. |
interface |
CustomTestApplication
An annotation that creates an application with the given base type that can be used for any
test in the given build.
|
interface |
HiltAndroidTest
Annotation used for marking an Android emulator tests that require injection.
|
Modifier and Type | Class and Description |
---|---|
interface |
AliasOf
Defines an alias between an existing Hilt scope and the annotated scope.
|