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
- 회원가입
- 로그인
- 플레이스토어
- 리사이클러뷰
- 클린아키텍처
- 뷰
- 코딩테스트
- 코틀린
- Jetpack
- Android
- cleanarchitecture
- Compose
- 컴포즈
- DiffUtil
- UiState
- ListAdapter
- coroutine
- MVVM
- 안드로이드
- 파이어베이스
- sharedFlow
- XML
- Flow
- Kotlin
- 알고리즘
- 커스텀뷰
- Build variants
- NavController
- NavHost
- Authentication
Archives
- Today
- Total
목록launchWhenResumed (1)
Grusie 안드로이드 개발 기술 블로그
[Android] lifeCycleScope.launchedWhenCreated, Started, Resumed 대체(deprecated)
개발을 하던 중 프래그먼트에서 UiState를 얻어오기 위해, 기존에 사용하던 방법대로 lifeCycleScope.launcedWhenStarted를 사용하려고 하였다. 하지만 deprecated 되었다는 메세지가 발생했다. 공식문서를 찾아보니, 메모리릭이 있을 수 있어, 더 이상 사용되지 않고, repeatOnLifeCycle에서 Lifecycle.State로 관리하라고 나와있다. This function is deprecated. launchWhenCreated is deprecated as it can lead to wasted resources in some cases. Replace with suspending repeatOnLifecycle to run the block whenever the..
안드로이드 개발/뷰
2024. 3. 26. 09:23