Package io.github.libxposed.api
Interface XposedInterface.Hooker
- Enclosing interface:
XposedInterface
public static interface XposedInterface.Hooker
Hooker for a method or constructor.
-
Method Summary
Modifier and TypeMethodDescriptionintercept(XposedInterface.Chain chain) Intercepts a method / constructor call.
-
Method Details
-
intercept
Intercepts a method / constructor call.- Parameters:
chain- The interceptor chain for the call- Returns:
- The result to be returned from the interceptor. If the hooker does not want to
change the result, it should call
chain.proceed()and return its result.For void methods and constructors, the return value is ignored by the framework.
- Throws:
Throwable- Throw any exception from the interceptor. The exception will propagate to the caller if not caught by any interceptor.
-