Package dagger.hilt.migration
Annotation Interface AliasOf
Defines an alias between an existing Hilt scope and the annotated scope. For example, the
following code makes @MyScope a functional replacement for @ActivityScope.
@Scope @AliasOf(ActivityScope.class) public @interface MyScope{}
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<? extends Annotation>[]
Returns the existing Hilt scope(s) that the annotated scope is aliasing.
-
Element Details
-
value
Class<? extends Annotation>[] valueReturns the existing Hilt scope(s) that the annotated scope is aliasing.
-