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 | 29 | 30 | 31 |
Tags
- room
- CollapsingToolbarLayout
- Algorithm
- CustomView
- 알고리즘
- DataBinding
- ViewModel
- 안드로이드
- 백준
- lifecycle
- BOJ
- Android
- 알림
- onMeasure
- kotlin
- onLayout
- hilt
- HTTP
- recyclerview
- AppBarLayout
- sqlite
- 코틀린
- Navigation
- CoordinatorLayout
- notification
- activity
- LiveData
- Coroutine
- View
- Behavior
Archives
- Today
- Total
목록@Hilt (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