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

35 lines
785 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
#if UNITY_EDITOR
namespace UnityEngine.Monetization
{
public class EditorNativePromoAdapter : INativePromoAdapter
{
public EditorNativePromoAdapter(PromoAdPlacementContent placementContent)
{
metadata = placementContent.metadata;
}
public PromoMetadata metadata { get; }
public void OnShown()
{
OnShown(PromoShowType.Full);
}
public void OnShown(PromoShowType type)
{
Debug.LogFormat("Native promo was shown: {0}", type);
}
public void OnClosed()
{
Debug.LogFormat("Native promo was closed.");
}
public void OnClicked()
{
Debug.LogFormat("Native promo was clicked");
}
}
}
#endif