Skip to content

Commit

Permalink
feat: add getEvents method to the public API prebid/Prebid.js#5703
Browse files Browse the repository at this point in the history
  • Loading branch information
gpolaert committed Sep 9, 2020
1 parent 0159547 commit 59c934c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dev-docs/publisher-api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ This page has documentation for the public API methods of Prebid.js.
* [.getAdserverTargetingForAdUnitCode([adUnitCode])](#module_pbjs.getAdserverTargetingForAdUnitCode)
* [.getBidResponses()](#module_pbjs.getBidResponses)
* [.getBidResponsesForAdUnitCode(adUnitCode)](#module_pbjs.getBidResponsesForAdUnitCode)
* [.getEvents()](#module_pbjs.onEvent)
* [.getHighestCpmBids([adUnitCode])](#module_pbjs.getHighestCpmBids)
* [.getAllWinningBids()](#module_pbjs.getAllWinningBids)
* [.getAllPrebidWinningBids()](#module_pbjs.getAllPrebidWinningBids)
Expand Down Expand Up @@ -1179,8 +1180,11 @@ If a custom adServerTargeting function can return an empty value, this boolean f

### pbjs.offEvent(event, handler, id)

### pbjs.getEvents() ⇒ `Array`

The methods `onEvent` and `offEvent` are provided for you to register
a callback to handle a Prebid.js event.
a callback to handle a Prebid.js event. While the method `getEvents` returns a copy of
all emitted events.

The optional `id` parameter provides more finely-grained event
callback registration. This makes it possible to register callback
Expand Down

0 comments on commit 59c934c

Please sign in to comment.