Michael Sigl
01/30/2021, 12:14 AMjavaClass.enclosingMethod.name
in java, but java is not available and I don't want to just run on the jvmMain, I want to have commonMain. So is there any way to get and execute a method with just its name as string?tobsef
01/30/2021, 10:16 AMobj::class.members.firstOrNull { it.name == "methodName" }?.call(argument1, argument2, ...)
More Info: kotlinlang.org - reflectionMichael Sigl
01/30/2021, 11:05 AMMichael Sigl
01/30/2021, 11:31 AMMichael Sigl
01/30/2021, 11:31 AM