Join Slack
Powered by
hey guys, given the class name of an `object` as a...
# announcements
g
groostav
05/14/2017, 7:33 AM
hey guys, given the class name of an
object
as a string, whats the
fastest
simplest way to get that instance in kotlin?
Copy code
val companionObject = Class.forName(jvmNameString).kotlin.objectInstance!!
is that as good as it gets?
10
Views
Open in Slack
Previous
Next