Sveriges mest populära poddar

Fragmented – Android Developer Podcast

136: Kotlin Extension Functions

22 min • 24 september 2018

In this fragment episode, Donn talks about Kotlin extension functions. He discusses what they are, how to build them, why they're useful, how to organize them, visibility and how to call them Java and much more.

Show Notes


import android.view.View

fun View.gone() {

    this.visibility = View.GONE
}

fun View.visible() {

    this.visibility = View.VISIBLE
}

Contact

Förekommer på
00:00 -00:00