What are Kotlin Scope Functions? How to pick the best for every use case?

Опубликовано: 10 Ноябрь 2021
на канале: Android Developer Tips
1,277
41

Kotlin is a modern language that brought many features to Android developers' table, one of them is scope functions.
In this video, you will learn what are the main differences between each scope function and some Android samples that give you an idea what is the way for selecting a scope function for use cases.

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
0:28 - What is a Scope Function?
1:00 - What are the differences between Scope Functions?
1:42 - "apply" Scope Function
2:46 - "run" Scope Function
3:56 - "also" Scope Function
4:39 - "let" Scope Function
6:11 - "with" Scope Function
6:47 - Outro

▬ Links and References ▬▬▬▬▬▬▬▬▬▬▬
► Kotlin language Scope Functions documentation:
https://kotlinlang.org/docs/scope-fun...
► Kotlin Scope Functions Cheatsheet:
  / kotlin-cheatsheet-scope-functions-let-run-...  
► Mastering Kotlin scope functions article:
  / mastering-kotlin-standard-functions-run-wi...  
► Don’t abuse Kotlin’s scope functions article:
https://proandroiddev.com/dont-abuse-...

▬ Follow me on ▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Twitter -   / @mohsenoid  
► Mastodon - https://mastodon.social/@mohsenoid@an...
► Medium -   / mohsenoid  
► Podcast - https://android-developer-tips.castos...


Смотрите видео What are Kotlin Scope Functions? How to pick the best for every use case? онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Android Developer Tips 10 Ноябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 1,277 раз и оно понравилось 41 посетителям.