# EventType

Import: `import com.install4j.api.events.EventType;`

```java
public final enum EventType
```

Enumeration class that represents all different event types for instances of [`InstallerEvent`](InstallerEvent.md).
Installer events cover everything that is written to the installer log file as well
as application life-cycle events.

## Constants

### BEFORE_EXECUTE_ACTION

Fired before an action is executed

### AFTER_EXECUTE_ACTION

Fired after an action has been executed. The event object will be of type [`InstallerActionEvent`](InstallerActionEvent.md).

### BEFORE_ROLLBACK_ACTION

Fired before a rollback is performed

### AFTER_ROLLBACK_ACTION

Fired after a rollback is performed

### BEFORE_INSTALL_FILE

Fired before a file is installed. The event object will be of type [`InstallerFileEvent`](InstallerFileEvent.md).

### AFTER_INSTALL_FILE

Fired after a file has been installed. The event object will be of type [`InstallerFileEvent`](InstallerFileEvent.md).

### DIRECTORY_CREATED

Fired after a directory has been installed. The event object will be of type [`InstallerDirectoryEvent`](InstallerDirectoryEvent.md).

### BEFORE_DOWNLOAD

Fired before a file is downloaded. The event object will be of type [`InstallerDownloadEvent`](InstallerDownloadEvent.md).

### AFTER_DOWNLOAD

Fired before a file has been downloaded. The event object will be of type [`InstallerDownloadEvent`](InstallerDownloadEvent.md).

### SHOW_SCREEN

Fired before a screen is shown.

### SCREEN_ACTIVATED

Fired after a screen has been fully activated.

### FINISHING

Fired when the installer or uninstaller quits but before any cleanup has been performed.

### FINISHED

Fired just before the installer or uninstaller quits.

### CANCELLING

Fired when the installer or uninstaller is canceled but before any cleanup has been performed.

### CANCELED

Fired just before the installer or uninstaller quits after having been canceled.

### VARIABLE_CHANGED

Fired after a variable has been set.

### FILE_INSTALLATION_STARTED

Fired before the file installation is started by the "Install files" action. You can get the total
size and the total file count from the event object.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`values()`](#values) | `EventType[]` |  |
| [`valueOf(String)`](#valueof-string) | `EventType` |  |
| [`getOperationVerbose()`](#getoperationverbose) | `String` | Get a verbose message that describes the operation that is connected with this event. |
| [`toString()`](#tostring) | `String` |  |

### values()

```java
public static EventType[] values()
```

### valueOf(String)

```java
public static EventType valueOf(String name)
```

### getOperationVerbose()

```java
public String getOperationVerbose()
```

Get a verbose message that describes the operation that is connected with this event.


**Returns:** the message

### toString()

```java
public String toString()
```

