How to use Extension Functions in Kotlin

preview_player
Показать описание
The extension function is a powerful feature of Kotlin because it allows you to add extra functionality to an existing class, even if you don't have access to its source code. In this article , I will cover how to define the extension function in Android and explore how to use it.

💾 Github Source :

🗒️ Medium's Article :

🚨 The article will be updated and more extension functions will be added

✨ Join Medium to read thousands of valuable stories ✨

If you're looking to enhance your Android skills or have any questions about the field, feel free to reach out to me on MentorCruise. I'm here to support your growth and learning! Let's connect and learn together! 📚💡
Рекомендации по теме
Комментарии
Автор

You are the best, you speak very clearly, and I always learn a lot from you❤

iraklideka
Автор

This video is very useful please upload more videos like this Kotlin concepts

narojkumarmahananda
Автор

Thanks to you for your helpful tutorial

schoolbari
Автор

Wonderful!...I was wondering, if I have a general util class. What is the difference between that and using extensions?

iameben
Автор

Just a suggestion : can you make a video on resources (colors, strings...) and how to access them in code ?
Specially in fragments ... ?
Ex: <resources>
<string name="open">open</string>

This works in mainActivity : var str: String =
but not in a Fragment ?!?
Thank you and keep on with your nice videos ! ❤

bodormarcel
Автор

سلام ببخشید به زبان فارسی هم آموزش دارین؟ با تشکر

mostafaahmadi
visit shbcf.ru