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
implementerIAnalytics
Methods
Initialize(Action)
public override void Initialize(Action onInitialized = null)
Parameters
onInitializedAction
OnApplicationPause(bool)
public override void OnApplicationPause(bool pause)
Parameters
pausebool
SetAnalyticsTrackingConsentGranted(bool)
Specifies if the user granted consent for analytics tracking
public override void SetAnalyticsTrackingConsentGranted(bool consent)
Parameters
consentbooltrue if user accepted, false otherwise
SetTailoredAdsConsentGranted(bool)
Specifies if the user granted consent for showing tailored ads
public override void SetTailoredAdsConsentGranted(bool consent)
Parameters
consentbooltrue 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
consentbooltrue if user accepted, false otherwise
SetUserIsAboveRequiredAge(bool)
Specifies if the user asserted being above the required age
public override void SetUserIsAboveRequiredAge(bool consent)
Parameters
consentbooltrue if user accepted, false otherwise
TrackAdRevenue(AdRevenueData)
public override void TrackAdRevenue(AdRevenueData adRevenueData)
Parameters
adRevenueDataAdRevenueData
TrackErrorEvent(ErrorSeverity, string)
public override void TrackErrorEvent(ErrorSeverity severity, string message)
Parameters
severityErrorSeveritymessagestring
TrackEvent(AnalyticsEvent)
public override 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 override 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 override void ValidateIntegration()