AnyHook

public protocol AnyHook

The base protocol for all hook types. Do not use this directly.

  • hookWillActivate() Default implementation

    Called 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 returns true.

  • hookDidActivate() Default implementation

    Called after the hook is activated.

    The default implementation does nothing.

    Default Implementation

    Declaration

    Swift

    static func hookDidActivate()