Table of Contents

Class AnalyticsBase

Namespace
HomaGames.HomaBelly
Assembly
HomaGames.HomaBelly.Core.dll
public abstract class AnalyticsBase
Inheritance
AnalyticsBase
Derived
Inherited Members

Properties

SupportsEditor

public virtual bool SupportsEditor { get; }

Property Value

bool

Methods

Initialize(Action)

public virtual void Initialize(Action onInitialized = null)

Parameters

onInitialized Action

OnApplicationPause(bool)

public virtual void OnApplicationPause(bool pause)

Parameters

pause bool

SetAnalyticsTrackingConsentGranted(bool)

Specifies if the user granted consent for analytics tracking

[Obsolete("This method is now obsolete and will be removed in a future version.")]
public virtual void SetAnalyticsTrackingConsentGranted(bool consent)

Parameters

consent bool

true if user accepted, false otherwise

SetCustomDimension01(string)

[Obsolete("Custom Dimensions feature is deprecated and related code will be removed in future versions.")]
public virtual void SetCustomDimension01(string customDimension)

Parameters

customDimension string

SetCustomDimension02(string)

[Obsolete("Custom Dimensions feature is deprecated and related code will be removed in future versions.")]
public virtual void SetCustomDimension02(string customDimension)

Parameters

customDimension string

SetCustomDimension03(string)

[Obsolete("Custom Dimensions feature is deprecated and related code will be removed in future versions.")]
public virtual void SetCustomDimension03(string customDimension)

Parameters

customDimension string

SetTailoredAdsConsentGranted(bool)

Specifies if the user granted consent for showing tailored ads

[Obsolete("This method is now obsolete and will be removed in a future version.")]
public virtual 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

[Obsolete("This method is now obsolete and will be removed in a future version.")]
public virtual 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

[Obsolete("This method is now obsolete and will be removed in a future version.")]
public virtual void SetUserIsAboveRequiredAge(bool consent)

Parameters

consent bool

true if user accepted, false otherwise

TrackAdRevenue(AdRevenueData)

public virtual void TrackAdRevenue(AdRevenueData adRevenueData)

Parameters

adRevenueData AdRevenueData

TrackErrorEvent(ErrorSeverity, string)

public virtual void TrackErrorEvent(ErrorSeverity severity, string message)

Parameters

severity ErrorSeverity
message string

TrackEvent(AnalyticsEvent)

public virtual 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 virtual 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 virtual void ValidateIntegration()