T
NativeJavaHooksBridge
The Android bridge for hooking Java methods. Needs native.java.hooks.
type NativeJavaHooksBridge = { … }Members
clearReturnValues
(token: NativeJavaHookToken): voidRemoves every result set on a hook.
hook
<Receiver extends boolean = true>(className: string, methodName: string, parameterTypes: string[], options?: NativeJavaHookOptions<Receiver>, listener?: (event: NativeJavaHookEvent<Receiver>) => void): NativeJavaHookTokenHooks the method whose parameter class names match parameterTypes, and sends each call to listener.
remove
(token: NativeJavaHookToken): voidRemoves a hook.
removeReturnValue
(token: NativeJavaHookToken, self: NativeJavaValue, args: NativeJavaValue[]): voidRemoves the result set for this receiver and these arguments.
setReturnValue
(token: NativeJavaHookToken, self: NativeJavaValue, args: NativeJavaValue[], value: NativeJavaValue): voidSets the result a replace hook returns for calls with this receiver and these arguments.