| 限定符和类型 | 类和说明 |
|---|---|
static class |
XC_MethodHook.MethodHookParam |
class |
XC_MethodHook.Unhook |
class |
XC_MethodHook.XC_MethodKeepHook
Note: This class used for distinguish the Method cann't unhook.
|
XCallback.Parampriority, PRIORITY_DEFAULT, PRIORITY_HIGHEST, PRIORITY_LOWEST| 构造器和说明 |
|---|
XC_MethodHook() |
XC_MethodHook(int priority) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
afterHookedMethod(XC_MethodHook.MethodHookParam param)
Called after the invocation of the method.
|
protected void |
beforeHookedMethod(XC_MethodHook.MethodHookParam param)
Called before the invocation of the method.
|
protected void beforeHookedMethod(XC_MethodHook.MethodHookParam param) throws java.lang.Throwable
Can use XC_MethodHook.MethodHookParam.setResult(Object) and XC_MethodHook.MethodHookParam.setThrowable(Throwable)
to prevent the original method from being called.
java.lang.Throwableprotected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws java.lang.Throwable
Can use XC_MethodHook.MethodHookParam.setResult(Object) and XC_MethodHook.MethodHookParam.setThrowable(Throwable)
to modify the return value of the original method.
java.lang.Throwable