Table of Contents

Class AnalyticsInterfaceForwarder

Namespace
HomaGames.HomaBelly
Assembly
HomaGames.HomaBelly.Core.dll

Acts as a wrapper to allow old IAnalytics implementers to work with the new AnalyticsBase based system.

public class AnalyticsInterfaceForwarder : AnalyticsBase
Inheritance
AnalyticsInterfaceForwarder
Inherited Members

Constructors

AnalyticsInterfaceForwarder(IAnalytics)

public AnalyticsInterfaceForwarder(IAnalytics implementer)

Parameters

implementer IAnalytics

Methods

Initialize(Action)

public override void Initialize(Action onInitialized = null)

Parameters

onInitialized Action

OnApplicationPause(bool)

public override void OnApplicationPause(bool pause)

Parameters

pause bool

SetAnalyticsTrackingConsentGranted(bool)

Specifies if the user granted consent for analytics tracking

public override void SetAnalyticsTrackingConsentGranted(bool consent)

Parameters

consent bool

true if user accepted, false otherwise

SetTailoredAdsConsentGranted(bool)

Specifies if the user granted consent for showing tailored ads

public override void SetTailoredAdsConsentGranted(bool consent)

Parameters

consent bool

true if user accepted, false otherwise

SetTermsAndConditionsAcceptance(bool)

Specifies if the user accepted privacy policy and terms and conditions

public override void SetTermsAndConditionsAcceptance(bool consent)

Parameters

consent bool

true if user accepted, false otherwise

SetUserIsAboveRequiredAge(bool)

Specifies if the user asserted being above the required age

public override void SetUserIsAboveRequiredAge(bool consent)

Parameters

consent bool

true if user accepted, false otherwise

TrackAdRevenue(AdRevenueData)

public override void TrackAdRevenue(AdRevenueData adRevenueData)

Parameters

adRevenueData AdRevenueData

TrackErrorEvent(ErrorSeverity, string)

public override void TrackErrorEvent(ErrorSeverity severity, string message)

Parameters

severity ErrorSeverity
message string

TrackEvent(AnalyticsEvent)

public override void TrackEvent(AnalyticsEvent analyticsEvent)

Parameters

analyticsEvent AnalyticsEvent

TrackIapRevenue(string, string, double, string, string, bool)

Tracks an In-App Purchase event. Purchase can be verified if transactionId and payload are informed for the corresponding platforms

public override void TrackIapRevenue(string productId, string currencyCode, double unitPrice, string transactionId, string payload, bool isRestored)

Parameters

productId string

The product id purchased

currencyCode string

The currency code of the purchase

unitPrice double

The unit price

transactionId string

(Optional) The transaction id for the IAP validation

payload string

(Optional - Only Android) Payload for Android IAP validation

isRestored bool

(Optional) If the purchase is restored. Default is false

ValidateIntegration()

public override void ValidateIntegration()