FunctionHookProtocol
public protocol FunctionHookProtocol : AnyObject, AnyHook
The protocol to which function hooks conform. Do not conform to this
directly; use FunctionHook.
-
The function which is to be hooked.
Declaration
Swift
static var target: Function { get } -
Initialize the function hook type. Do not invoke or override this; use
AnyHook.hookWillActivate()orAnyHook.hookDidActivate()for lifecycle events.Declaration
Swift
init() -
origExtension methodA proxy which allows invoking the original function.
Use
orig.functionto access the original implementation of the hooked function.See the example in the documentation of
FunctionHookfor more information on how this is used.Declaration
Swift
public var orig: Self { get }
View on GitHub
Install in Dash
FunctionHookProtocol Protocol Reference