Extension functions are a nifty Kotlin feature to extend a class with new functionality without having to inherit from the class. This replaces static Utility classes, and makes our code much more readable. We go through a few examples in vanilla Kotlin + Android.
Code we wrote: https://gist.github.com/rpandey1234/6...
Further reading:
➤ https://www.raywenderlich.com/1098679...
➤ https://kotlinlang.org/docs/extension...
Hi! I’m Rahul, a software engineer with a passion for teaching. I went to Stanford, was a founding engineer at a startup, and have worked at various companies across Silicon Valley. I’m currently an Android Developer at Facebook and teach an Android class at Stanford. Would love to connect with you! This channel is about tech (especially Silicon Valley), combining tactical how-to guides with interviews.
📹 YouTube: https://www.youtube.com/c/RahulPandey...
📝 LinkedIn: / rpandey1234
🐦 Twitter: / rpandey1234
📸 Instagram: / rpandey1234
📂 Github: https://github.com/rpandey1234/
#Kotlin #KotlinExtensionFunctions
Смотрите видео Kotlin Extension Functions - How To + Common Android Use Cases онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Rahul Pandey 04 Апрель 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,878 раз и оно понравилось 92 людям.