injectRedirect

fun injectRedirect(sourceClassName: String, sourceMethodName: String, sourceParameterTypeNames: List<String> = emptyList(), targetClassName: String, targetMethodName: String, targetParameterTypeNames: List<String> = emptyList(), owner: String? = null): UnsafeHandle

Redirects a source method to another target method (string-based overload).


fun injectRedirect(sourceMethod: Method, targetMethod: Method, owner: String? = null): UnsafeHandle

Redirects a source method to another target method (Method overload).