MCPcopy Create free account
hub / github.com/cinit/TMoe / hookAfterAlways

Method hookAfterAlways

app/src/main/java/cc/ioctl/tmoe/util/HookUtils.java:143–158  ·  view source on GitHub ↗
(final @NonNull CommonDynamicHook this0, final @NonNull Method method,
                                       int priority, final @NonNull AfterHookedMethod afterHookedMethod)

Source from the content-addressed store, hash-verified

141 }
142
143 public static void hookAfterAlways(final @NonNull CommonDynamicHook this0, final @NonNull Method method,
144 int priority, final @NonNull AfterHookedMethod afterHookedMethod) {
145 Objects.requireNonNull(this0, "this0 == null");
146 Objects.requireNonNull(method, "method == null");
147 XposedBridge.hookMethod(method, new XC_MethodHook(priority) {
148 @Override
149 protected void afterHookedMethod(MethodHookParam param) throws Throwable {
150 try {
151 afterHookedMethod.afterHookedMethod(param);
152 } catch (Throwable e) {
153 this0.logError(e);
154 throw e;
155 }
156 }
157 });
158 }
159
160 public static void hookAfterAlways(final @NonNull CommonDynamicHook this0, final @NonNull Constructor<?> ctor,
161 int priority, final @NonNull AfterHookedMethod afterHookedMethod) {

Callers 1

initOnceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected