Class Hook

  • All Implemented Interfaces:
    kotlin.Comparable

    
    public final class Hook
    extends XC_MethodHook
                        

    Runs the provided callback after the hooked Member executes.

    This is a small XC_MethodHook implementation that forwards the afterHookedMethod event to a higher-level MethodHookCallback. Exceptions thrown by the callback are caught and logged via Patcher.logger.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Action1<XC_MethodHook.MethodHookParam> callback
      public final Integer priority
    • Constructor Summary

      Constructors 
      Constructor Description
      Hook(Action1<XC_MethodHook.MethodHookParam> callback)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Action1<XC_MethodHook.MethodHookParam> getCallback()
      • Methods inherited from class kotlin.Comparable

        compareTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Hook

        Hook(Action1<XC_MethodHook.MethodHookParam> callback)
    • Method Detail

      • getCallback

         final Action1<XC_MethodHook.MethodHookParam> getCallback()