Package com.install4j.api.launcher
Interface ApplicationLauncher.Callback
-
- Enclosing class:
- ApplicationLauncher
public static interface ApplicationLauncher.CallbackYou can implement this interface to receive notifications when the installer application exits or needs to shut down your application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ApplicationLauncher.ProgressListenercreateProgressListener()Override this method and return an instance ofApplicationLauncher.ProgressListenerto receive progress information from the installer application.voidexited(int exitValue)Invoked when the installer application has exited.voidprepareShutdown()Invoked before the installer application shuts down this JVM.
-
-
-
Method Detail
-
exited
void exited(int exitValue)
Invoked when the installer application has exited.- Parameters:
exitValue- the exit value of installer application
-
prepareShutdown
void prepareShutdown()
Invoked before the installer application shuts down this JVM. This happens when a "Shutdown calling launcher" action is executed in the installer application.
-
createProgressListener
default ApplicationLauncher.ProgressListener createProgressListener()
Override this method and return an instance ofApplicationLauncher.ProgressListenerto receive progress information from the installer application. This is implemented on Windows, macOS and Linux. On other Unix variants it is unsupported and can be switched on by setting the system propertyinstall4j.forceProgressListener=true.
-
-