Package limn.backend
Interface QuitHandler
- 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 the application may end, for what belongs to no window (a download still
running): set with
Backend.setQuitHandler(limn.backend.QuitHandler). Asked first by Backend.requestQuit(),
before any window; a refusal ends the request there.
A handler that throws has refused, as a CloseRequestHandler that throws has.
-
Method Summary
Modifier and TypeMethodDescriptionvoidquitRequested(QuitRequest request) Called on the UI thread.
-
Method Details
-
quitRequested
Called on the UI thread.- Parameters:
request- the question, to answer once withQuitRequest.allow()orQuitRequest.refuse()
-