Interface Widget.OnUnmap

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.OnUnmap
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted when @widget is going to be unmapped.
  • Method Details

    • onUnmap

      void onUnmap()
      Emitted when @widget is going to be unmapped.

      A widget is unmapped when either it or any of its parents up to the
      toplevel widget have been set as hidden.

      As ::unmap indicates that a widget will not be shown any longer,
      it can be used to, for example, stop an animation on the widget.