Patcher API
Functions
Link copied to clipboard
inline fun <T> PatcherAPI.after(vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable
Adds a Hook to a constructor of a class.
inline fun <T> PatcherAPI.after(methodName: String, vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable
Adds a Hook to a method of a class.
Link copied to clipboard
inline fun <T> PatcherAPI.before(vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable
Adds a PreHook to a constructor of a class.
inline fun <T> PatcherAPI.before(methodName: String, vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable
Adds a PreHook to a method of a class.
Link copied to clipboard
inline fun <T> PatcherAPI.instead(vararg paramTypes: Class<*>, crossinline callback: InsteadHookCallback<T>): Runnable
Replaces a constructor of a class.
inline fun <T> PatcherAPI.instead(methodName: String, vararg paramTypes: Class<*>, crossinline callback: InsteadHookCallback<T>): Runnable
Replaces a method of a class.
Link copied to clipboard
open fun patch(@NonNull m: Member, @NonNull callback: Action1<XC_MethodHook.MethodHookParam>): Runnable
Patches a method or constructor.
open fun patch(@NonNull clazz: Class<out Any>, @NonNull fn: String, @NonNull paramTypes: Array<Class<out Any>>, @NonNull hook: XC_MethodHook): Runnable
open fun patch(@NonNull forClass: String, @NonNull fn: String, @NonNull paramTypes: Array<Class<out Any>>, @NonNull hook: XC_MethodHook): Runnable
Patches a method.
Link copied to clipboard
Removes all patches.