T
NativeHookToken
An installed Objective-C hook; the plugin scope removes it on dispose.
type NativeHookToken = { … }Members
readonly active
booleanFalse once the hook is removed.
clearReturnValues
(): voidRemoves every result set on this hook.
remove
(): voidRemoves the hook; calling it again does nothing.
removeReturnValue
(self: NativeHandle, args: unknown[]): voidRemoves the result set for this receiver and these arguments.
setReturnValue
(self: NativeHandle, args: unknown[], value: NativeObjCResult): voidSets the result a cacheOnly hook returns for calls with this receiver and these arguments.