//Extensions for Dagger Hilt/it.czerwinski.android.hilt.annotations/FactoryMethod
FactoryMethod
[jvm] @Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class FactoryMethod(component: KClass<*>)
Marks factory method for the class returned by the annotated function.
The implementation will be provided in the given component.
Any annotations annotated with @Scope or @Qualifier will also annotate the resulting @Provides method.
If the annotated function is neither static nor a member of an object, the enclosing class will become the first parameter of the generated provide function.
Constructors
Name | Summary |
---|---|
FactoryMethod | [jvm] fun FactoryMethod(component: KClass<*> = SingletonComponent::class) |
Functions
Name | Summary |
---|---|
equals | [jvm] Content open operator fun equals(other: Any?): Boolean |
hashCode | [jvm] Content open fun hashCode(): Int |
toString | [jvm] Content open fun toString(): String |
Properties
Name | Summary |
---|---|
component | [jvm] val component: KClass<*>Hilt component in which the provider should be installed. |