# InstallerFileInstallationEvent

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

```java
public class InstallerFileInstallationEvent extends InstallerEvent
```

The event object that is passed to installer event listeners when the file installation is started.
Event listeners are registered in the [`InstallerContext`](../context/InstallerContext.md).

This event object contains additional information about the installed files.
The event type [`EventType.FILE_INSTALLATION_STARTED`](EventType.md#file-installation-started) produces this event object when fired.


**See also:**

- [InstallerEventListener](InstallerEventListener.md)
- [InstallerContext.addInstallerEventListener](../context/InstallerContext.md#addinstallereventlistener-installereventlistener)

## Inherited from

- [InstallerEvent](InstallerEvent.md) — 6 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getTotalSize()`](#gettotalsize) | `long` | Returns the total size of the installation in bytes |
| [`getFileCount()`](#getfilecount) | `long` | Returns the total file count |
| [`toString()`](#tostring) | `String` |  |
| [`getVerbose()`](#getverbose) | `String` |  |

### getTotalSize()

```java
public long getTotalSize()
```

Returns the total size of the installation in bytes


**Returns:** the size in bytes

### getFileCount()

```java
public long getFileCount()
```

Returns the total file count


**Returns:** the file count

### toString()

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

### getVerbose()

```java
public String getVerbose()
```

## Constructors

| Signature | Description |
|---|---|
| [`InstallerFileInstallationEvent(Object, Context, EventType, long, long)`](#installerfileinstallationevent-object-context-eventtype-long-long) | The constructor is called by the framework. |

### InstallerFileInstallationEvent(Object, Context, EventType, long, long)

```java
public InstallerFileInstallationEvent(Object source, Context context, EventType type, long totalSize, long fileCount)
```

The constructor is called by the framework.


**Parameters:**

- `source` — the event source
- `context` — the context
- `type` — the event type.
- `totalSize` — the total size of the installation in bytes
- `fileCount` — the total file count

