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
- pullrequest
- LiveData
- onPause()
- MVVM
- fragment
- 프래그먼트
- onResume()
- ViewModel
- LifecycleOwner
- onCreate()
- configuration change
- 풀리퀘스트
- onDestory()
- TransactionTooLargeException
- arcitecture
- Navigation Graph
- 가시성
- 열거
- onRestart()
- onSaveInstanceState()
- IntArray
- Bundle
- NavGraph
- 깃허브
- UI controller
- onStart()
- Navigation component
- Navgivation
- Backing property
- onStop()
Archives
- Today
- Total
밑빠진 지식에 블로그 쓰기
Scope Function 본문
apply
This may be the first time you're seeing the apply function in Kotlin. apply is a scope function in the Kotlin standard library. It executes a block of code within the context of an object. It forms a temporary scope, and in that scope, you can access the object without its name. The common use case for apply is to configure an object. Such calls can be read as "apply the following assignments to the object."
프래그먼트 간 공유되는 ViewModel | Android Developers
고급 앱 예를 통해 Jetpack Navigation 구성요소를 사용해보고 활동의 여러 프래그먼트 간에 공유 ViewModel을 보유할 경우의 이점에 관해 알아봅니다.
developer.android.com