AbstractAnalyticsDispatcher
An abstract class in Alta.Analytics.Runtime, Alta.Analytics.
Base for classes that receive every analytics event sent through the IAnalyticsService and send it somewhere. Built by VContainer; AltaAnalyticsDispatcher is the game's one.
Constructors
| Member | What it is |
|---|
protected AbstractAnalyticsDispatcher(IAnalyticsService analyticsService) | Built by the game's dependency injection (VContainer), which passes the services in. |
Fields
1 private and internal field
| Member | What it is |
|---|
private readonly IAnalyticsService analyticsService | The injected analytics service. |
Methods
| Member | What it is |
|---|
void Initialize() | Registers OnAnalyticsEvent as a listener on the analytics service. |
protected abstract void OnAnalyticsEvent(IReadonlyAnalyticsData data) | Called with each event's data. Subclasses decide where it goes. |