Package com.aliucord.patcher
Class PreHook
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class PreHook extends XC_MethodHookInvokes the provided MethodHookCallback before the hooked method or constructor runs.
This small XC_MethodHook forwards the beforeHookedMethod event to the given callback. Any exceptions thrown by the callback are caught and logged via Patcher.logger.
-
-
Constructor Summary
Constructors Constructor Description PreHook(Action1<XC_MethodHook.MethodHookParam> callback)
-
Method Summary
Modifier and Type Method Description final Action1<XC_MethodHook.MethodHookParam>getCallback()-
-
Method Detail
-
getCallback
final Action1<XC_MethodHook.MethodHookParam> getCallback()
-
-
-
-