Interface OnDestroyListener<T>

Type Parameters:
T - The type of the object being managed by the ActiveObjectContext.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OnDestroyListener<T>
This functional interface defines a contract for listeners that need to be notified when an object is destroyed.
Author:
Sergey Grachev
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called when an object is destroyed.
  • Method Details

    • onObjectDestroy

      void onObjectDestroy(ActiveObjectContext<T> context)
      This method is called when an object is destroyed.
      Parameters:
      context - An instance of ActiveObjectContext that contains information about the destroyed object.