Class CallbackDescriptor

    • Constructor Detail

      • CallbackDescriptor

        public CallbackDescriptor​(LifecycleEvent callbackType)
    • Method Detail

      • clear

        public void clear()
        Removes all callback methods.
      • getCallbackMethods

        public Collection<String> getCallbackMethods()
        Returns all callback methods for this callback event.
        Returns all callback methods
      • addCallbackMethod

        public void addCallbackMethod​(String methodName)
      • removeCallbackMethod

        public void removeCallbackMethod​(String methodName)
      • moveMethod

        public boolean moveMethod​(String callbackMethod,
                                  int destinationIndex)
        Moves specified callback method to the specified position
        callbackMethod - callbacm method name (should exist)
        destinationIndex - destinationi index (should be valid)
        true if any changes were made
      • setCallbackMethodAt

        public void setCallbackMethodAt​(int index,
                                        String method)
        Replaces a callback method at the specified position
        index - callback method index
        method - new callback method