createHooks

fun createHooks(methods: Iterable<Method>, callback: IMethodHook): List<XC_MethodHook.Unhook>

为方法列表批量创建普通 hook。

Parameters

methods

目标方法列表

callback

before / after 回调


fun createHooks(methods: Iterable<Method>, callback: IReplaceHook): List<XC_MethodHook.Unhook>

为方法列表批量创建替换 hook。

Parameters

methods

目标方法列表

callback

replace 回调,返回值会作为原方法结果