vendredi 18 septembre 2020

How to call method by name using Kotlin Reflection?

Is there any easy way to call method by name in Kotlin?

Something like:

val obj: Any
obj.invokeMethod("methodName", args...)




Aucun commentaire:

Enregistrer un commentaire