Table of Contents

Interface IAnalytics

Namespace
HomaGames.HomaBelly
Assembly
HomaGames.HomaBelly.Core.dll
public interface IAnalytics

Properties

SupportsEditor

bool SupportsEditor { get; }

Property Value

bool

Methods

Initialize()

void Initialize()

OnApplicationPause(bool)

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.")]
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

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

Parameters

consent bool

true if user accepted, false otherwise

TrackAdEvent(AdAction, AdType, string, string)

void TrackAdEvent(AdAction adAction, AdType adType, string adNetwork, string adPlacementId)

Parameters

adAction AdAction
adType AdType
adNetwork string
adPlacementId string

TrackDesignEvent(string, float)

void TrackDesignEvent(string eventName, float eventValue = 0)

Parameters

eventName string
eventValue float

TrackErrorEvent(ErrorSeverity, string)

void TrackErrorEvent(ErrorSeverity severity, string message)

Parameters

severity ErrorSeverity
message string

TrackInAppPurchaseEvent(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

void TrackInAppPurchaseEvent(string productId, string currencyCode, double unitPrice, string transactionId = null, string payload = null, bool isRestored = false)

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

TrackProgressionEvent(ProgressionStatus, string, int)

void TrackProgressionEvent(ProgressionStatus progressionStatus, string progression01, int score = 0)

Parameters

progressionStatus ProgressionStatus
progression01 string
score int

TrackProgressionEvent(ProgressionStatus, string, string, int)

void TrackProgressionEvent(ProgressionStatus progressionStatus, string progression01, string progression02, int score = 0)

Parameters

progressionStatus ProgressionStatus
progression01 string
progression02 string
score int

TrackProgressionEvent(ProgressionStatus, string, string, string, int)

void TrackProgressionEvent(ProgressionStatus progressionStatus, string progression01, string progression02, string progression03, int score = 0)

Parameters

progressionStatus ProgressionStatus
progression01 string
progression02 string
progression03 string
score int

TrackResourceEvent(ResourceFlowType, string, float, string, string)

void TrackResourceEvent(ResourceFlowType flowType, string currency, float amount, string itemType, string itemId)

Parameters

flowType ResourceFlowType
currency string
amount float
itemType string
itemId string

ValidateIntegration()

void ValidateIntegration()