@ParametersAreNonnullByDefault
Package dagger.hilt.android.migration
This package contains Android APIs to help migrating a codebase to Hilt.
- See Also:
- Migration to Hilt
-
Class Summary Class Description CustomInjection Utility methods for injecting the application when usingCustomInject
.OptionalInjectCheck Utility methods for validating if anAndroidEntryPoint
-annotated class that is also annotated withOptionalInject
was injected by Hilt. -
Annotation Types Summary Annotation Type Description CustomInject When used on aHiltAndroidApp
-annotated application, this causes the application to no longer inject itself in onCreate and instead allows it to be injected at some other time.OptionalInject When placed on anAndroidEntryPoint
-annotated activity / fragment / view / etc, allows injection to occur optionally based on whether or not the application is using Hilt.