mardi 20 juin 2017

How can I get a reference to a Kotlin object by name?

If I have a top level object declaration

package com.example

object MyObject {}

how can I convert the string com.example.MyObject into a reference to MyObject?





Aucun commentaire:

Enregistrer un commentaire