mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 18:55:35 +08:00
Update move-to-new-api documentation
This commit is contained in:
@@ -125,6 +125,8 @@ afterHook {
|
|||||||
result = ...
|
result = ...
|
||||||
// 删除返回值内容
|
// 删除返回值内容
|
||||||
resultNull()
|
resultNull()
|
||||||
|
// 向 Hook APP 抛出异常
|
||||||
|
Throwable("Fatal").throwToApp()
|
||||||
// 执行未经 Hook 的原始方法
|
// 执行未经 Hook 的原始方法
|
||||||
method.invokeOriginal(...)
|
method.invokeOriginal(...)
|
||||||
}
|
}
|
||||||
@@ -158,6 +160,8 @@ override fun afterHookedMethod(param: MethodHookParam) {
|
|||||||
param.result = ...
|
param.result = ...
|
||||||
// 删除返回值内容
|
// 删除返回值内容
|
||||||
param.result = null
|
param.result = null
|
||||||
|
// 向 Hook APP 抛出异常
|
||||||
|
param.throwable = Throwable("Fatal")
|
||||||
// 执行未经 Hook 的原始方法
|
// 执行未经 Hook 的原始方法
|
||||||
XposedBridge.invokeOriginalMethod(param.method, param.thisObject, ...)
|
XposedBridge.invokeOriginalMethod(param.method, param.thisObject, ...)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user