# StartupNotification.Listener

Import: `import com.install4j.api.launcher.StartupNotification;`

```java
static interface Listener extends EventListener
```

The interface for startup events in single instance mode or for open file events on macOS.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`startupPerformed(String)`](#startupperformed-string) | `void` | Will be called when the executable is started again or when a file open event is received. |

### startupPerformed(String)

```java
void startupPerformed(String parameters)
```

Will be called when the executable is started again or when a file open event is received.
Note that each invocation may be from a separate thread. If you have to serialize
calls into this method, please synchronize the implementation.


**Parameters:**

- `parameters` — the parameters of the invocation, or the file to open on macOS.
For multiple files, files are surrounded by double-quotes and separated by spaces.

**Note:** any default arguments defined for the launcher will not be
passed again here

.

