AnyHook
public protocol AnyHook
Base protocol requirements for hooks. Do not use this directly.
-
Declaration
Swift
associatedtype Group : HookGroup = DefaultGroup
-
Called before the hook is activated.
Declaration
Swift
static func hookWillActivate() -> Bool
Return Value
true
to continue activation,false
to skip. The default implementation simply returnstrue
. -
Called after the hook is activated.
The default implementation does nothing.
Declaration
Swift
static func hookDidActivate()