◆ Add()
Add a SdkEvent to the event pipeline. Any SdkEventConsumers that were created with the Register method, that match the evt's SdkEvent.Source property will be triggered. If there are no events being processed when this method is called, the event will be processed immediately. If there are already events being processed, or if this method is called as a side effect of an earlier call to Add, then the event will be enqueued and processed after all existing events have been processed.
- Parameters
-
- Returns
- A Promise<T> that will complete when the given evt's SdkEventConsumer's have finished processing the event.
Implements Beamable.Player.ISdkEventService.
◆ Process()
void Beamable.Player.SdkEventService.Process |
( |
| ) |
|
|
inline |
This will be removed in a future version of Beamable, please do not use. The processing happens immediately when events are added via the Add method. There should never be a need to manually process the events.
Implements Beamable.Player.ISdkEventService.
◆ Register()
Register a handler function that will trigger anytime an SdkEvent is processed that matches the given source argument.
- Parameters
-
source | Specify which SdkEvent.Source value the handler will be called for. |
handler | A function that consumes the SdkEvent, and produces a Promise. The processing of an SdkEvent won't complete until all the resulting promises complete. |
- Returns
- A SdkEventConsumer that represents the registration of the handler on the source.
Implements Beamable.Player.ISdkEventService.
◆ Unregister()
The documentation for this class was generated from the following file:
- com.beamable/Runtime/Player/SdkEventService.cs