@API(status=STABLE,
since="1.10")
public interface LauncherSessionListener
LauncherSession is opened and closed.
A LauncherSessionListener can be registered programmatically with
the LauncherConfig
passed to the
LauncherFactory or
automatically via Java's ServiceLoader
mechanism.
All methods in this class have empty default implementations. Subclasses may therefore override one or more of these methods to be notified of the selected events.
The methods declared in this interface are called by the Launcher
or LauncherSession created via the LauncherFactory.
LauncherSession,
LauncherConfig.Builder#addLauncherSessionListeners,
LauncherFactory| Modifier and Type | Field and Description |
|---|---|
static LauncherSessionListener |
NOOP
No-op implementation of
LauncherSessionListener |
| Modifier and Type | Method and Description |
|---|---|
default void |
launcherSessionClosed(LauncherSession session)
Called when a launcher session was closed.
|
default void |
launcherSessionOpened(LauncherSession session)
Called when a launcher session was opened.
|
static final LauncherSessionListener NOOP
LauncherSessionListenerdefault void launcherSessionOpened(LauncherSession session)
session - the opened sessiondefault void launcherSessionClosed(LauncherSession session)
session - the closed session