Beispiel #1
0
 private static void OnWarning(string warning)
 {
     VungleLog.Log(VungleLog.Level.Debug, VungleLog.Context.LogEvent, "SendOnWarningEvent",
                   "Vungle.onWarning => From Unity:" + warning);
     if (onWarningEvent != null)
     {
         onWarningEvent(warning);
     }
 }
Beispiel #2
0
 private static void OnError(string error)
 {
     VungleLog.Log(VungleLog.Level.Debug, VungleLog.Context.LogEvent, "SendOnErrorEvent",
                   "Vungle.onWarning => From Unity:" + error);
     if (onErrorEvent != null)
     {
         onErrorEvent(error);
     }
 }
Beispiel #3
0
 public static void updateCCPAStatus(Consent consent)
 {
     try
     {
         helper.UpdateCCPAStatus(consent);
     }
     catch (Exception e)
     {
         VungleLog.Log(VungleLog.Level.Error, "updateCCPAStatus", "Vungle.updateCCPAStatus", e.Message);
     }
 }
Beispiel #4
0
 public static void updateConsentStatus(Consent consent, string version = "1.0")
 {
     try
     {
         helper.UpdateConsentStatus(consent, version);
     }
     catch (Exception e)
     {
         VungleLog.Log(VungleLog.Level.Error, "updateConsentStatus", "Vungle.updateConsentStatus", e.Message);
     }
 }
Beispiel #5
0
    private static void OnLog(string log)
    {
        VungleLog.Log(VungleLog.Level.Debug, VungleLog.Context.LogEvent, "SendOnLogEvent", "An log event. Log message is' " + log + "'.");
        if (onLogEvent != null)
        {
#if UNITY_WSA_10_0 || UNITY_WINRT_8_1 || UNITY_METRO
            VungleSceneLoom.Loom.QueueOnMainThread(() =>
            {
                onLogEvent(log);
            });
#else
            onLogEvent(log);
#endif
        }
    }
Beispiel #6
0
    private static void AdFinished(string placementId, AdFinishedEventArgs args)
    {
        VungleLog.Log(VungleLog.Level.Debug, VungleLog.Context.AdLifecycle, "SendOnAdFinishedEvent",
                      string.Format("An ad finished displaying for {0}", placementId));
        if (onAdFinishedEvent != null)
        {
#if UNITY_WSA_10_0 || UNITY_WINRT_8_1 || UNITY_METRO
            VungleSceneLoom.Loom.QueueOnMainThread(() =>
            {
                onAdFinishedEvent(placementId, args);
            });
#else
            onAdFinishedEvent(placementId, args);
#endif
        }
    }
Beispiel #7
0
    private static void AdPlayable(string placementId, bool playable)
    {
        VungleLog.Log(VungleLog.Level.Debug, VungleLog.Context.AdLifecycle, "SendAdPlayableEvent",
                      string.Format("Placement {0} - Playable status {1}", placementId, playable.ToString()));
        if (adPlayableEvent != null)
        {
#if UNITY_WSA_10_0 || UNITY_WINRT_8_1 || UNITY_METRO
            VungleSceneLoom.Loom.QueueOnMainThread(() =>
            {
                adPlayableEvent(placementId, playable);
            });
#else
            adPlayableEvent(placementId, playable);
#endif
        }
    }