add Patch
Add a patch
Return
Unhook
Parameters
member
The member (method, constructor) to patch
hook
MethodHook
open fun addPatch(clazz: Class<out Any>, methodName: String, paramTypes: Array<Class<out Any>>, hook: XC_MethodHook): XC_MethodHook.Unhook
Add a patch
Return
Unhook
Parameters
clazz
Class to patch
method Name
The name of the method
param Types
The types of the parameters (e.g. int.class, String.class)
hook
MethodHook
open fun addPatch(forClass: String, methodName: String, paramTypes: Array<Class<out Any>>, hook: XC_MethodHook): XC_MethodHook.Unhook
Add a patch
Return
Unhook
Parameters
for Class
The full name of the class to patch (e.g. com.aliucord.patcher.Patcher)
method Name
The name of the method
param Types
The types of the parameters (e.g. int.class, String.class)
hook
MethodHook