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