AnyHook
public protocol AnyHook
The base protocol for all hook types. Do not use this directly.
-
hookWillActivate()
Default implementationCalled before the hook is activated.
Default Implementation
Declaration
Swift
static func hookWillActivate() -> Bool
Return Value
true
to continue activation,false
to skip. The default implementation simply returnstrue
. -
hookDidActivate()
Default implementationCalled after the hook is activated.
The default implementation does nothing.
Default Implementation
Declaration
Swift
static func hookDidActivate()