Beamable SDK
Public Member Functions | List of all members
Beamable.Api.Analytics.AnalyticsTracker Class Reference

This type defines the Client main entry point for the Analytics feature. More...

Inheritance diagram for Beamable.Api.Analytics.AnalyticsTracker:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Api.Analytics.AnalyticsTracker:
Collaboration graph
[legend]

Public Member Functions

 AnalyticsTracker (IPlatformService platform, PlatformRequester requester, CoroutineService coroutineService, int batchTimeoutSeconds, int batchMaxSize)
 Initialize the specified platformServer, customerId, projectId, batchTimeoutSeconds and batchMaxSize. Analytics Events can be tracked before initialization, but will not be sent until initialization occurs. More...
 
void TrackEvent (IAnalyticsEvent analyticsEvent, bool sendImmediately=false)
 Report some analytics event to the Beamable Cloud. Note that this analytic event may not be reported immediately unless the sendImmediately argument is set. Otherwise, the event will be recorded during the next analytics batch event. More...
 
void UpdateBatchSettings (BatchSettings batchSettings, bool flush=true)
 Change the BatchSettings that the IAnalyticsTracker uses to send messages to Beamable. You can revert these changes by using the RevertBatchSettings method. More...
 
void RevertBatchSettings (bool flush=true)
 Revert any BatchSettings customizations made through the UpdateBatchSettings method. More...
 

Detailed Description

This type defines the Client main entry point for the Analytics feature.

Related Links

img beamable-logo

Constructor & Destructor Documentation

◆ AnalyticsTracker()

Beamable.Api.Analytics.AnalyticsTracker.AnalyticsTracker ( IPlatformService  platform,
PlatformRequester  requester,
CoroutineService  coroutineService,
int  batchTimeoutSeconds,
int  batchMaxSize 
)
inline

Initialize the specified platformServer, customerId, projectId, batchTimeoutSeconds and batchMaxSize. Analytics Events can be tracked before initialization, but will not be sent until initialization occurs.

Parameters
batchTimeoutSecondsBatch timeout seconds before expiration.
batchMaxSizeBatch max size before expiration.

Member Function Documentation

◆ RevertBatchSettings()

void Beamable.Api.Analytics.AnalyticsTracker.RevertBatchSettings ( bool  flush = true)
inline

Revert any BatchSettings customizations made through the UpdateBatchSettings method.

Parameters
flushForce that any pending analytic events are sent to Beamable at this moment.

Implements Beamable.Api.Analytics.IAnalyticsTracker.

◆ TrackEvent()

void Beamable.Api.Analytics.AnalyticsTracker.TrackEvent ( IAnalyticsEvent  analyticsEvent,
bool  sendImmediately = false 
)
inline

Report some analytics event to the Beamable Cloud. Note that this analytic event may not be reported immediately unless the sendImmediately argument is set. Otherwise, the event will be recorded during the next analytics batch event.

Parameters
analyticsEventAn instance of a IAnalyticsEvent. You can create your own types of events. For an example, see, SampleCustomEvent
sendImmediatelyIf set to true send immediately.

Implements Beamable.Api.Analytics.IAnalyticsTracker.

◆ UpdateBatchSettings()

void Beamable.Api.Analytics.AnalyticsTracker.UpdateBatchSettings ( BatchSettings  batchSettings,
bool  flush = true 
)
inline

Change the BatchSettings that the IAnalyticsTracker uses to send messages to Beamable. You can revert these changes by using the RevertBatchSettings method.

Parameters
batchSettingsA new set of BatchSettings. This will override the existing settings.
flushForce that any pending analytic events are sent to Beamable at this moment.

Implements Beamable.Api.Analytics.IAnalyticsTracker.


The documentation for this class was generated from the following file: