IT/android
-
Hilt 공식문서 훑어보기1IT/android 2024. 12. 8. 20:00
Hilt ApplicationAll apps using Hilt must contain an Application class annotated with @HiltAndroidApp. @HiltAndroidApp kicks off the code generation of the Hilt components and also generates a base class for your application that uses those generated components. Because the code generation needs access to all of your modules, the target that compiles your Application class also needs to have all ..
-
Composable의 수명주기IT/android 2024. 11. 21. 12:32
컴포저블의 수명 주기 초기 컴포지션단계 -> 리컴포지션 -> 컴포지션 종료 컴포지션은 초기 컴포지션을 통해서만 생성되며 리컴포지션을 통해서만 업데이트 됩니다. 컴포지션을 수정하는 유일한 방법은 리컴포지션을 통하는 것입니다. 리컴포지션은 State 객체가 변경되면 트리거 됩니다. Compose 는 이러한 객체를 추적하고 컴포지션에서 특정 State 를 읽는 모든 컴포저블 및 호출하는 컴포저블 중 건너뛸 수 없는 모든 컴포저블을 실행합니다. State 객체의 설명은 다음과 같습니다.A value holder where reads to the value property during the execution of a Composable function, the current RecomposeScope will ..