T

NativeHookHandlers

The handlers an Objective-C hook runs around each call; it needs at least one, unless cacheOnly is set.

type NativeHookHandlers<Receiver extends boolean = true> = { … }

Members

after?(context: NativeHookContext<Receiver>) => void | Promise<void>

Runs after the original implementation.

before?(context: NativeHookContext<Receiver>) => void | Promise<void>

Runs before the original implementation.

Runs instead of the original; what it returns becomes the method's result.