Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class HiltBinding(val component: KClass<*>, val scope: KClass<*> = Any::class, val qualifier: KClass<*> = Any::class, val named: String = "")

Annotation used to indicate that a class should be bound to a Hilt component.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class SingletonBinding(val qualifier: KClass<*> = Any::class, val named: String = "")

Annotation used to indicate that a class should be bound to a Singleton scope using Hilt. This annotation should be used on the implementation class and not on the interface.