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
- databinding xml
- android.view.WindowManager.BadTokenException
- Python
- LaunchedEffect
- @immutable
- isFinishing()
- Android
- WindowManager$BadTokenException
- databinding error
- 레트로핏
- [databinding]
- 힐트
- @stable
- Java
- @provides @binds 차이
- Could not find method
- dispatchTouchEvent
- android compose stable
- 안드로이드 다이얼로그 오류
- effect api
- 터치이벤트 순서
- material3
- android compose
- onIntercepterTouchEvent
- rememberCoroutineScope
- {"msg":"cannot find method
- 안드로이드
- compose side-effect
- android mvi
- LaunchedEffect vs rememberCoroutineScope
Archives
- Today
- Total
목록LaunchedEffect (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