일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- OkHttp Interceptor
- 알고리즘 자바
- 안드로이드 카카오 로그인
- Android ProgressBar
- 영어공부
- 프로그래머스 알고리즘
- 카카오 알고리즘
- Android Interceptor
- Android WebView
- Android ViewPager2
- Android 12 대응
- 안드로이드 fcm
- DataBinding
- WebView
- Android Navigation
- Android
- Kotlin FCM
- android recyclerview
- 안드로이드
- Java
- Android 12
- 영어독립365
- 66챌린지
- scope function
- Android DataBinding
- MVP Architecture
- Kotlin
- Android Jetpack
- 안드로이드 갤러리 접근
- 습관만들기
Archives
- Today
- Total
목록Kotlin Apply (1)
Developer Geek

apply 범위함수 범위함수란 범위함수란 영어로 Scope Funtion으로 불린다. 함수명 Scope Funtion에서 알 수 있듯이 이 범위 내에 함수를 만드는 것이다. 범위(Scope)를 만들어서 그 안에서 람다식을 이용해 로직을 구현할 수 있다. apply 범위함수란 fun T.apply(block: T.() -> Unit): T apply 범위함수에 대해서 Kotlin 공식 문서에서는 다음과 같이 설명하고 있다. The context object is available as a receiver(this). The return value is the object itself. Use apply for code blocks that don't return a value and mainly opera..
안드로이드
2022. 10. 3. 15:00