https://kotlinlang.org logo
#android
Title
# android
v

vesp

03/15/2023, 8:26 PM
Question about this bit of code:
Copy code
fun Float.convertDpToPx(): Float = this * Resources.getSystem().displayMetrics.density
What is that technique called where its structured
fun <TYPE>.<FUNCTION_NAME>(...).....
. Is this called a class extension?
e

ephemient

03/15/2023, 8:34 PM
4 Views