Package com.aliucord.patcher
Class Hook
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class Hook extends XC_MethodHookRuns the provided callback after the hooked Member executes.
This is a small XC_MethodHook implementation that forwards the afterHookedMethod event to a higher-level MethodHookCallback. Exceptions thrown by the callback are caught and logged via Patcher.logger.
-
-
Constructor Summary
Constructors Constructor Description Hook(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()
-
-
-
-