Ayden
11/26/2019, 4:36 PMJava::class.java
and Java::class
?
Why sometime I need to passing the first option as a parameter but sometime I need to pass the second option?Luca Nicoletti
11/26/2019, 4:37 PM::class
is of type KClass
::class.java
is of type Class
depending on which your function requires, you need to provide the correct oneCasey Brooks
11/26/2019, 4:37 PMClass<>
you’d normally use for JVM reflection. The second is a KClass<>
, used for Kotlin-specific reflection, and is available on all platforms (including Native and JS), albeit with limited reflection functionalityAyden
11/26/2019, 4:40 PMLuca Nicoletti
11/26/2019, 4:40 PM