Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Android
- Behavior
- onMeasure
- recyclerview
- LiveData
- Coroutine
- hilt
- BOJ
- room
- lifecycle
- DataBinding
- AppBarLayout
- HTTP
- CustomView
- Navigation
- CoordinatorLayout
- 알고리즘
- 코틀린
- View
- 백준
- sqlite
- 알림
- ViewModel
- notification
- CollapsingToolbarLayout
- kotlin
- 안드로이드
- activity
- Algorithm
- onLayout
Archives
- Today
- Total
목록dependency injection (1)
개발일지
Android in A..Z - Hilt (Entry Point)
Hilt Entry Point Entry Point는 Hilt가 Inject하는 진입점이다. Activity, Fragment 같이 Android Framework에 의해 제공되는 Component들은 @AndroidEntryPoint를 통해 진입점을 지정할 수 있고, 일반 객체들도 @Inject constructor를 정의하여 진입점을 만들어 Inject할 수 있다. 하지만 Hilt가 지원하지 않는 Class에 Inject할 경우가 존재하고 이를 해결하기 위해 EntryPoint를 설정해야한다. class DeleteToDoSnackbar( private val view: View, private val todo: ToDo ) { private val entryPoint by lazy { EntryPo..
Android (안드로이드)/Hilt
2021. 3. 30. 15:47