# class EventCollection<T, R>

#### package com.turner.top.lib.events.collection

#### implements IEventCollection<T, R>

#### extended by AdEvents, AdModelEvents, CCEvents, CueEvents, MediaEvents, MediaModelEvents, MediaStreamInfoModelEvents, PlayerApiEvents

### Constructor

###

`new (events:Array<EventSignal1<T, R>>, ?eventMap:Map<String, EventSignal1<T, R>>)`

### Methods

###

`after ():ISimpleEventCollection<T, R>`

###

`around ():ISimpleEventCollection<T, R>`

###

`before ():ISimpleEventCollection<T, R>`

###

`each (f:EventSignal1<T, R> ‑> Void):ISimpleEventCollection<T, R>`

Public API

###

`length ():UInt`

###

`listen (handler:ListenableHandler):ISimpleEventCollection<T, R>`

###

`listenFor (f:ListenForMap):ISimpleEventCollection<T, R>`

###

`once (handler:ListenableHandler):ISimpleEventCollection<T, R>`

###

`unlisten (handler:ListenableHandler):ISimpleEventCollection<T, R>`

###

`unlistenFor (f:ListenForMap):ISimpleEventCollection<T, R>`