接口 XposedInterface.HookBuilder
- 封闭接口:
XposedInterface
public static interface XposedInterface.HookBuilder
Builder for configuring a hook.
-
方法概要
修饰符和类型方法说明intercept(XposedInterface.Hooker hooker) Sets the hooker for the method / constructor and builds the hook.Sets the exception handling mode for the hook.setPriority(int priority) Sets the priority of the hook.
-
方法详细资料
-
setPriority
Sets the priority of the hook. Hooks with higher priority will be called before hooks with lower priority. The default priority isXposedInterface.PRIORITY_DEFAULT.- 参数:
priority- The priority of the hook- 返回:
- The builder itself for chaining
-
setExceptionMode
Sets the exception handling mode for the hook. The default mode isXposedInterface.ExceptionMode.DEFAULT.- 参数:
mode- The exception handling mode- 返回:
- The builder itself for chaining
-
intercept
Sets the hooker for the method / constructor and builds the hook.- 参数:
hooker- The hooker object- 返回:
- The handle for the hook
- 抛出:
IllegalArgumentException- if origin is framework internal orConstructor.newInstance(java.lang.Object...), or hooker is invalidHookFailedError- if hook fails due to framework internal error
-