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

Published: 10 November 2021
on channel: 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...


Watch video What are Kotlin Scope Functions? How to pick the best for every use case? online, duration hours minute second in high quality that is uploaded to the channel Android Developer Tips 10 November 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,277 times and liked it 41 visitors.