Interface CloseContext

All Superinterfaces:
ViewContext
All Known Implementing Classes:
CloseContextImpl

@NonExtendable public interface CloseContext extends ViewContext
Context for View.onClose: the session is tearing down.

Phase validity: update() throws IllegalStateException. Calling openView(...) from onClose is illegal; the call is logged SEVERE and dropped immediately to prevent navigation loops. close() is a no-op because the session is already closing.

  • Method Details

    • reason

      @NotNull @NotNull CloseReason reason()
      Returns why this session is closing.
      Returns:
      the close reason