# EVENTS\_AGGREGATION\_TYPES

## Overview

Constants are defined to represent different aggregation types for return value of eventsManager.fireEventListeners. The constants include:

* **RETURN\_VALUE\_BOOLEAN**: fireEventListeners returns a logical and between all the listeners return values.
* **RETURN\_VALUE\_ARRAY**: fireEventListeners returns an array with all the listeners return values.

## Constants Summarized

| Type                                                              | Name                                            | Summary                                                                                                                                                                    |
| ----------------------------------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [enum](https://docs.servoy.com/reference/servoycore/dev-api/enum) | [RETURN\_VALUE\_ARRAY](#return_value_array)     | Constant for eventsManager fireEventListeners.                                                                                                                             |
| [enum](https://docs.servoy.com/reference/servoycore/dev-api/enum) | [RETURN\_VALUE\_BOOLEAN](#return_value_boolean) | Constant for eventsManager fireEventListeners, with this ENUM the fireEventListeners will return a boolean which is a logical and between all the listeners return values. |

## Constants Detailed

### RETURN\_VALUE\_ARRAY

Constant for eventsManager fireEventListeners. with this ENUM the fireEventListeners will return an array with all the listeners return values.

**Type**\
[enum](https://docs.servoy.com/reference/servoycore/dev-api/enum)

**Sample**

```js
var myarray = eventsManager.fireEventListeners('customEvent',null,null,EVENTS_AGGREGATION_TYPE.RETURN_VALUE_ARRAY);
```

### RETURN\_VALUE\_BOOLEAN

Constant for eventsManager fireEventListeners, with this ENUM the fireEventListeners will return a boolean which is a logical and between all the listeners return values.

**Type**\
[enum](https://docs.servoy.com/reference/servoycore/dev-api/enum)

**Sample**

```js
var myboolean = eventsManager.fireEventListeners('customEvent',null,null,EVENTS_AGGREGATION_TYPE.RETURN_VALUE_BOOLEAN);
```

***
