-
public interface QuitHandler实现者确定是否应该继续或取消退出此应用程序的请求。
-
-
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 voidhandleQuitRequestWith(QuitEvent e, QuitResponse response)在要求退出应用程序时调用。
-
-
-
方法详细信息
-
handleQuitRequestWith
void handleQuitRequestWith(QuitEvent e, QuitResponse response)
在要求退出应用程序时调用。 实现者必须调用要么QuitResponse.cancelQuit(),QuitResponse.performQuit(),或确保应用程序终止。 请求此应用程序退出的进程(或注销)将被阻止,直到处理完QuitResponse。 需要复杂UI关闭的应用程序可以从任何线程调用QuitResponse。 在您回复初始请求之前,可能会要求您的应用多次退出。 每次请求退出时都会调用此处理程序,并且在处理之前传递相同的QuitResponse对象。 使用后,QuitResponse不能再次用于更改决策。- 参数
-
e- 退出此应用程序的请求。 -
response- the one-shot response object used to cancel or proceed with the quit action.
-
-