after

inline fun <T> PatcherAPI.after(vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable

Adds a Hook to a constructor of a class.

Return

the Runnable object of the patch

Parameters

paramTypes

parameters of the constructor. Useful for patching individual overloads

callback

callback for the patch

See also

XC_MethodHook.afterHookedMethod

inline fun <T> PatcherAPI.after(methodName: String, vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable

Adds a Hook to a method of a class.

Return

the Runnable object of the patch

Parameters

methodName

name of the method to patch

paramTypes

parameters of the method. Useful for patching individual overloads

callback

callback for the patch

See also

XC_MethodHook.afterHookedMethod