fun initQuitAction(quitAction: QuitAction?) { requireNotNull(quitAction) { "quitAction is null" } require(quitAction == null) { "The method is once-call." } quitAction = quitAction }
Set the action to call from quit ( ) .