paulblessing
09/15/2017, 3:25 PM@JvmStatic
will make the getter available to Java without the companion object. @JvmField
will make the field available to Java as a static. If it's a compile-time constant, using const val
will also make it available as a field from Java.