nohjunh.log
로그인
nohjunh.log
로그인
Compose remember delegation
노준혁
·
2023년 5월 7일
팔로우
0
0
https://kotlinworld.com/208
Delegation을 사용하지 않는경우
textSate.value를 통해 mutableState의 value를 변경함.
Delegation을 사용 시
MutableState를 by 키워드와 함께 쓰므로 textState에 getValue와 setValue에 대한 위임(Delegation)이 일어남.
그렇기에 반드시 mutableStateOf 변수를 var로 선언해야 함.
노준혁
https://github.com/nohjunh
팔로우
이전 포스트
Mongo DB Realm + Kotlin Coroutines - Cannot find a version of ‘org.jetbrains.kotlinx:kotlinx-coroutines-core’ that satisfies the version constraints
다음 포스트
Compose remember delegation
0개의 댓글
댓글 작성