Example #1
0
 // Token: 0x060000D1 RID: 209 RVA: 0x00003908 File Offset: 0x00001B08
 public static void ShowWithOptions(HZShowOptions showOptions)
 {
     if (showOptions == null)
     {
         showOptions = new HZShowOptions();
     }
     HZInterstitialAdAndroid.ShowWithOptions(showOptions);
 }
Example #2
0
        /// <summary>
        /// Shows an ad with the given options.
        /// </summary>
        /// <param name="showOptions"> The options to show the ad with, or the default options if <c>null</c></param>
        public static void ShowWithOptions(HZShowOptions showOptions)
        {
            if (showOptions == null)
            {
                showOptions = new HZShowOptions();
            }

            #if UNITY_ANDROID
            HZInterstitialAdAndroid.ShowWithOptions(showOptions);
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZInterstitialAdIOS.ShowWithOptions(showOptions);
            #endif
        }
Example #3
0
        /// <summary>
        /// Shows an ad with the given options.
        /// </summary>
        /// <param name="showOptions"> The options to show the ad with, or the default options if <c>null</c></param>
        public static void ShowWithOptions(HZShowOptions showOptions)
        {
            if (showOptions == null)
            {
                showOptions = new HZShowOptions();
            }

            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            HZInterstitialAdAndroid.ShowWithOptions(showOptions);
                #elif UNITY_IPHONE
            HZInterstitialAdIOS.ShowWithOptions(showOptions);
                #endif
            #else
            UnityEngine.Debug.LogWarning("Call received to show an HZInterstitalAd, but the SDK does not function in the editor. You must use a device/emulator to fetch/show ads.");
            _instance.StartCoroutine(InvokeCallbackNextFrame(HeyzapAds.NetworkCallback.SHOW_FAILED, showOptions.Tag));
            #endif
        }