Skip to content

Commit 59c934c

Browse files
committed
feat: add getEvents method to the public API prebid/Prebid.js#5703
1 parent 0159547 commit 59c934c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dev-docs/publisher-api-reference.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This page has documentation for the public API methods of Prebid.js.
2424
* [.getAdserverTargetingForAdUnitCode([adUnitCode])](#module_pbjs.getAdserverTargetingForAdUnitCode)
2525
* [.getBidResponses()](#module_pbjs.getBidResponses)
2626
* [.getBidResponsesForAdUnitCode(adUnitCode)](#module_pbjs.getBidResponsesForAdUnitCode)
27+
* [.getEvents()](#module_pbjs.onEvent)
2728
* [.getHighestCpmBids([adUnitCode])](#module_pbjs.getHighestCpmBids)
2829
* [.getAllWinningBids()](#module_pbjs.getAllWinningBids)
2930
* [.getAllPrebidWinningBids()](#module_pbjs.getAllPrebidWinningBids)
@@ -1179,8 +1180,11 @@ If a custom adServerTargeting function can return an empty value, this boolean f
11791180

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

1183+
### pbjs.getEvents() ⇒ `Array`
1184+
11821185
The methods `onEvent` and `offEvent` are provided for you to register
1183-
a callback to handle a Prebid.js event.
1186+
a callback to handle a Prebid.js event. While the method `getEvents` returns a copy of
1187+
all emitted events.
11841188

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

0 commit comments

Comments
 (0)