T

NativeHookToken

An installed Objective-C hook; the plugin scope removes it on dispose.

type NativeHookToken = { … }

Members

False once the hook is removed.

Removes every result set on this hook.

remove(): void

Removes the hook; calling it again does nothing.

removeReturnValue(self: NativeHandle, args: unknown[]): void

Removes the result set for this receiver and these arguments.

setReturnValue(self: NativeHandle, args: unknown[], value: NativeObjCResult): void

Sets the result a cacheOnly hook returns for calls with this receiver and these arguments.