Fré Dumazy
10/11/2017, 1:59 PM@file:JvmName("MetricUtils")
of the beginning of the file with this extension function
val Int.px: Int
@JvmName("dpToPx")
get() = (this * Resources.getSystem().displayMetrics.density).toInt()
I'm able to call this in Java MetricUtils.dpToPx(12);
and 12.px
in Kotlin
In java I get this in the suggestions when typing dpToPx(int $receiver)
, is it possible to rename the parameter $receiver
to something else?