addPatch

open fun addPatch(member: Member, hook: XC_MethodHook): XC_MethodHook.Unhook

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

methodName

The name of the method

paramTypes

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

forClass

The full name of the class to patch (e.g. com.aliucord.patcher.Patcher)

methodName

The name of the method

paramTypes

The types of the parameters (e.g. int.class, String.class)

hook

MethodHook