0

What is the meaning of a yellow and italic method name in Android Studio, such as in this screenshot:

enter image description here

xjcl
  • 12,848
  • 6
  • 67
  • 89

2 Answers2

1

Yellow and italic is an indication for extension function in Kotlin

Konstantin Raspopov
  • 1,565
  • 1
  • 14
  • 20
0

Kind of guessing here since I can't find the answer online.

Italic: Functions defined in Kotlin, such as unescapeHtml (which I defined elsewhere in this Kotlin app) and thread. Not to be confused with Java static methods.

Italic Yellow: Extension functions defined in Kotlin, whereas normal methods have no color (e.g. marker.showInfoWindow() or other methods of this class). Note that this means String.isBlank() and .apply/let/run are actually implemented as extension methods!

xjcl
  • 12,848
  • 6
  • 67
  • 89