Skip to main content

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​

MemberWhat 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
MemberWhat it is
private readonly IAnalyticsService analyticsServiceThe injected analytics service.

Methods​

MemberWhat 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.