Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Runtime/Monetization/AndroidAnalytics.cs

26 lines
651 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
#if UNITY_ANDROID
using System;
namespace UnityEngine.Monetization
{
sealed class AndroidAnalytics : AndroidJavaProxy
{
readonly AndroidJavaClass m_UnityAnalytics;
void onAddExtras(String extras)
{
Analytics.SetAnalyticsEventExtra(extras);
}
public void Initialize()
{
m_UnityAnalytics.CallStatic("initialize", this);
}
public AndroidAnalytics() : base("com.unity3d.services.analytics.interfaces.IAnalytics")
{
m_UnityAnalytics = new AndroidJavaClass("com.unity3d.services.analytics.interfaces.Analytics");
}
}
}
#endif