接口 XposedInterface.Hooker

封闭接口:
XposedInterface

public static interface XposedInterface.Hooker
方法或构造函数的 Hooker(拦截器实现)。
  • 方法详细资料

    • intercept

      Object intercept(@NonNull XposedInterface.Chain chain) throws Throwable
      拦截一个方法 / 构造函数调用。
      参数:
      chain - 本次调用的拦截器链
      返回:
      从拦截器返回的结果。如果 Hooker 不希望修改结果,应调用 chain.proceed() 并返回其结果。

      对于 void 方法和构造函数,返回值会被框架忽略。

      抛出:
      Throwable - 在拦截器中抛出的任何异常。如果未被其他拦截器捕获,将会传播到调用方。