@FunctionalInterface public interface StopListener
API.addStopListener(). Implementations of this type are invoked when the Stop button is pressed in the Run Program dialog. It is only applicable to the Local API.
Invoked when the Stop button is pressed in the Run Program dialog. It provides an opportunity to perform cleanup operations such as terminating spawned threads, closing open streams and freeing allocated resources. However, it is not necessary to remove listeners; all added listeners will be automatically removed after this method returns.
Pressing the Stop button does not disable the API. Consequentially, the
Stop button will not trigger
DeactivateListeners. And, this method
can make API calls as part of the shutdown process.
Copyright © 2017 nintaco.com
Nintaco is free software; you can redistribute it and/or modify it under the terms of LGPLv2.1.