Package limn.backend

Interface CloseRequestHandler

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 CloseRequestHandler
Decides whether a window may close, set with NativeWindow.setCloseRequestHandler(limn.backend.CloseRequestHandler). It is asked when the user closes the window and when the application is ending, and answers through the CloseRequest it is handed, at once or later.

A handler that throws has refused: the window stays open, and the exception reaches the crash handler as any exception from application code on the UI thread does.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called on the UI thread.