ApplicationLauncher.Callback (install4j API)
Description: declaration: package: com.install4j.api.launcher, class: ApplicationLauncher, interface: Callback

Package com.install4j.api.launcher

# Interface ApplicationLauncher.Callback

Enclosing class:
  `ApplicationLauncher`

public static interface ApplicationLauncher.Callback
You can implement this interface to receive notifications when the installer application exits or needs to shut down your application.

See Also:
  - `ApplicationLauncher.launchApplication(String, String[], boolean, ApplicationLauncher.Callback)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default ApplicationLauncher.ProgressListener`
  `createProgressListener()`
  Override this method and return an instance of `ApplicationLauncher.ProgressListener` to receive progress information from the installer application.
  `void`
  `exited(int exitValue)`
  Invoked when the installer application has exited.
  `void`
  `prepareShutdown()`
  Invoked before the installer application shuts down this JVM.

- ## Method Details

  - ### exited

    void exited(int exitValue)
    Invoked when the installer application has exited.
    Parameters:
      `exitValue` - the exit value of the 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 of `ApplicationLauncher.ProgressListener` to 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 property `install4j.forceProgressListener=true`.