T
NativeJavaHookOptions
Options for hooks.hook.
type NativeJavaHookOptions<Receiver extends boolean = boolean> = { … }Members
coalesce?
"receiver"Collapses queued after events for the same receiver into one; needs a non-static method and an after payload.
notify?
boolean | "after"Whether the listener hears calls: before the method by default, after once it has run, false never.
payload?
NativeHookPayload<Receiver>Trims the receiver, arguments and phase each event sends, to cut crossing cost on hot methods.
replace?
booleanReturns a value set with setReturnValue for a matching call instead of running the method. Defaults to false.
rewriteArguments?
booleanLets a before listener hooked from a UI scope return { arguments } to run the method with them instead.