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
- isFinishing()
- [databinding]
- material3
- 레트로핏
- android.view.WindowManager.BadTokenException
- Java
- Android
- android mvi
- databinding error
- 터치이벤트 순서
- onIntercepterTouchEvent
- LaunchedEffect vs rememberCoroutineScope
- 안드로이드
- WindowManager$BadTokenException
- {"msg":"cannot find method
- 힐트
- effect api
- @immutable
- android compose stable
- @provides @binds 차이
- Python
- 안드로이드 다이얼로그 오류
- LaunchedEffect
- databinding xml
- @stable
- Could not find method
- dispatchTouchEvent
- compose side-effect
- android compose
- rememberCoroutineScope
Archives
- Today
- Total
목록rememberCoroutineScope (1)
개발관련일지
android compose LaunchedEffect, rememberCoroutineScope 학습정리
composable은 순수함수 처럼 사용하기위해서 (f(state) = view) side effect가 없는게 좋지만 필요한 경우에는 생명주기를 인식하고 관리되는 환경에서 시행되야함 -> 이걸 도와주는게 Effect API이다. LaunchedEffect 컴포저블내에서 suspend fun을 안전하게 실행해준다. @Composable @NonRestartableComposable @OptIn(InternalComposeApi::class) fun LaunchedEffect( key1: Any?, block: suspend CoroutineScope.() -> Unit ) { val applyContext = currentComposer.applyCoroutineContext remember(key1) ..
개발기록/안드로이드
2023. 7. 27. 00:55