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 | NativeJavaHookRewrite): NativeJavaHookTokenHooks the method whose parameter class names match parameterTypes, and sends each call to listener.
proxy
(interfaces: string[], handler: (call: NativeJavaProxyCall) => void | NativeJavaArgument): NativeJavaProxyCreates a Java object implementing interfaces, from a UI scope only. Calls on the main thread run handler
inline and return its value; calls on other threads reach it later and return the type's default.
remove
(token: NativeJavaHookToken): voidRemoves a hook or a proxy.
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.