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
Methods
Initialize(Action)
public virtual void Initialize(Action onInitialized = null)
Parameters
onInitializedAction
OnApplicationPause(bool)
public virtual void OnApplicationPause(bool pause)
Parameters
pausebool
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
consentbooltrue 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
customDimensionstring
SetCustomDimension02(string)
[Obsolete("Custom Dimensions feature is deprecated and related code will be removed in future versions.")]
public virtual void SetCustomDimension02(string customDimension)
Parameters
customDimensionstring
SetCustomDimension03(string)
[Obsolete("Custom Dimensions feature is deprecated and related code will be removed in future versions.")]
public virtual void SetCustomDimension03(string customDimension)
Parameters
customDimensionstring
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
consentbooltrue 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
consentbooltrue 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
consentbooltrue if user accepted, false otherwise
TrackAdRevenue(AdRevenueData)
public virtual void TrackAdRevenue(AdRevenueData adRevenueData)
Parameters
adRevenueDataAdRevenueData
TrackErrorEvent(ErrorSeverity, string)
public virtual void TrackErrorEvent(ErrorSeverity severity, string message)
Parameters
severityErrorSeveritymessagestring
TrackEvent(AnalyticsEvent)
public virtual void TrackEvent(AnalyticsEvent analyticsEvent)
Parameters
analyticsEventAnalyticsEvent
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
productIdstringThe product id purchased
currencyCodestringThe currency code of the purchase
unitPricedoubleThe unit price
transactionIdstring(Optional) The transaction id for the IAP validation
payloadstring(Optional - Only Android) Payload for Android IAP validation
isRestoredbool(Optional) If the purchase is restored. Default is false
ValidateIntegration()
public virtual void ValidateIntegration()