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.
replace?
(context: NativeHookContext<Receiver>) => NativeObjCResultRuns instead of the original; what it returns becomes the method's result.