This commit is contained in:
2022-02-04 00:09:13 +08:00
parent 78481465e0
commit 806b77345d
2 changed files with 30 additions and 4 deletions

View File

@@ -39,9 +39,27 @@ import com.highcapable.yukihookapi.param.PackageParam
*
* 你可以在 [YukiHookXposedInitProxy] 的 [YukiHookXposedInitProxy.onHook] 中实现如下用法
*
* 调用 [PackageParam.loadApp] loadApp(name = "包名", hooker = 继承于此类的自定义 Hooker)
* 调用 [PackageParam.loadApp] loadApp(name = "包名", hooker = CustomHooker())
*
* 调用 [PackageParam.loadHooker] loadHooker(hooker = 继承于此类的自定义 Hooker)
* 调用 [PackageParam.loadHooker] loadHooker(hooker = CustomHooker())
*
* ....
*
* 继承类参考示例:
*
* ....
*
* class CustomHooker : YukiBaseHooker() {
*
* ....override fun onHook() {
*
* ........// Your code here.
*
* ....}
*
* }
*
* ....
*
* 详情请参考 https://github.com/fankes/YukiHookAPI/wiki
*/

View File

@@ -42,20 +42,28 @@ import com.highcapable.yukihookapi.hook.factory.encase
*
* 可写作如下形式:
*
* ....
*
* override fun onHook() = YukiHookAPI.encase(moduleName = "模块包名") {
*
* // Your code here.
* ....// Your code here.
*
* }
*
* ....
*
* 还可写作如下形式:
*
* ....
*
* override fun onHook() = encase(moduleName = "模块包名") {
*
* // Your code here.
* ....// Your code here.
*
* }
*
* ....
*
* 详情请参考 https://github.com/fankes/YukiHookAPI/wiki
*/
@Keep