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.
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 TypeMethodDescriptionvoidcloseRequested(CloseRequest request) Called on the UI thread.
-
Method Details
-
closeRequested
Called on the UI thread.- Parameters:
request- the question, to answer once withCloseRequest.allow()orCloseRequest.refuse()
-