PreHook

class PreHook(val callback: MethodHookCallback) : XC_MethodHook

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

Constructors

Link copied to clipboard
constructor(callback: MethodHookCallback)

Properties

Link copied to clipboard

the callback to run before the original method executes

Link copied to clipboard

Functions

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