android entry point1 [Android] Hilt AndroidEntryPoint Annotation Introduce Application에서 멤버 주입을 사용 가능으로 설정한 후, @AndroidEntryPoint Annotation을 사용하여 다른 Android class에서 멤버 주입을 사용 가능으로 설정할 수 있다. 다음 유형에서 @AndroidEntryPoint를 사용할 수 있다. Activity Fragment View Service BroadcastReceiver @AndroidEntryPoint class MyActivity : MyBaseActivity() { // Bindings in SingletonComponent or ActivityComponent @Inject lateinit var bar: Bar override fun onCreate(savedInstanceState: B.. 2022. 11. 20. 이전 1 다음 반응형