Hook

class Hook(val callback: MethodHookCallback) : XC_MethodHook

Runs 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.

Constructors

Link copied to clipboard
constructor(callback: MethodHookCallback)

Properties

Link copied to clipboard

the callback to execute after the original method completes

Link copied to clipboard

Functions

Link copied to clipboard
open operator fun compareTo(other: XCallback?): Int