Interface Widget.OnDestroy

Enclosing class:
Widget
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 static interface Widget.OnDestroy
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Signals that all holders of a reference to the widget should release
    the reference that they hold.
  • Method Details

    • onDestroy

      void onDestroy()
      Signals that all holders of a reference to the widget should release
      the reference that they hold.

      May result in finalization of the widget if all references are released.

      This signal is not suitable for saving widget state.