static VungleBinding() { if (Application.platform == RuntimePlatform.IPhonePlayer) { VungleManager.noop(); } }
static Vungle() { #if UNITY_EDITOR helper = new VungleUnityEditor(); #elif UNITY_IOS helper = new VungleiOS(); #elif UNITY_ANDROID helper = new VungleAndroid(); #elif UNITY_WSA_10_0 || UNITY_WINRT_8_1 || UNITY_METRO helper = new VungleWindows(); #endif logLevel = VungleLog.Level.Debug; VungleManager.noop(); VungleManager.OnSDKInitializeEvent += OnInitialize; VungleManager.OnAdPlayableEvent += AdPlayable; VungleManager.OnAdStartEvent += AdStarted; VungleManager.OnAdFinishedEvent += AdFinished; VungleManager.OnSDKLogEvent += OnLog; VungleManager.OnPlacementPreparedEvent += OnPlacementPrepared; VungleManager.OnVungleCreativeEvent += OnVungleCreative; VungleManager.OnErrorEvent += OnError; VungleManager.OnWarningEvent += OnWarning; }
static VungleAndroid() { if (Application.platform != RuntimePlatform.Android) { return; } VungleManager.noop(); using (var pluginClass = new AndroidJavaClass("com.vungle.VunglePlugin")) _plugin = pluginClass.CallStatic <AndroidJavaObject>("instance"); }