T

NativeJavaHooksBridge

The Android bridge for hooking Java methods. Needs native.java.hooks.

type NativeJavaHooksBridge = { … }

Members

Removes 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): NativeJavaHookToken

Hooks the method whose parameter class names match parameterTypes, and sends each call to listener.

proxy(interfaces: string[], handler: (call: NativeJavaProxyCall) => void | NativeJavaArgument): NativeJavaProxy

Creates 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.

Removes a hook or a proxy.

Removes the result set for this receiver and these arguments.

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