コード例 #1
0
 // Token: 0x060000FE RID: 254 RVA: 0x00003D8C File Offset: 0x00001F8C
 public static void ShowWithOptions(HZShowOptions showOptions)
 {
     if (showOptions == null)
     {
         showOptions = new HZShowOptions();
     }
     HZVideoAdAndroid.ShowWithOptions(showOptions);
 }
コード例 #2
0
ファイル: HZVideoAd.cs プロジェクト: taocong810/WordSearch
        /// <summary>
        /// Fetches an ad for the given ad tag.
        /// </summary>
        /// <param name="tag">The ad tag to fetch an ad for.</param>
        public static void Fetch(string tag)
        {
            tag = HeyzapAds.TagForString(tag);

            #if UNITY_ANDROID
            HZVideoAdAndroid.Fetch(tag);
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZVideoAdIOS.Fetch(tag);
            #endif
        }
コード例 #3
0
ファイル: HZVideoAd.cs プロジェクト: taocong810/WordSearch
        /// <summary>
        /// Returns whether or not an ad is available for the given ad tag.
        /// </summary>
        /// <returns><c>true</c>, if an ad is available, <c>false</c> otherwise.</returns>
        public static bool IsAvailable(string tag)
        {
            tag = HeyzapAds.TagForString(tag);

            #if UNITY_ANDROID
            return(HZVideoAdAndroid.IsAvailable(tag));
            #elif UNITY_IPHONE && !UNITY_EDITOR
            return(HZVideoAdIOS.IsAvailable(tag));
            #else
            return(false);
            #endif
        }
コード例 #4
0
        /// <summary>
        /// Fetches an ad for the given ad tag.
        /// </summary>
        /// <param name="tag">The ad tag to fetch an ad for.</param>
        public static void Fetch(string tag)
        {
            tag = HeyzapAds.TagForString(tag);

            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            HZVideoAdAndroid.Fetch(tag);
                #elif UNITY_IPHONE
            HZVideoAdIOS.Fetch(tag);
                #endif
            #else
            UnityEngine.Debug.LogWarning("Call received to fetch an HZVideoAd, but the SDK does not function in the editor. You must use a device/emulator to fetch/show ads.");
            _instance.StartCoroutine(InvokeCallbackNextFrame(HeyzapAds.NetworkCallback.FETCH_FAILED, tag));
            #endif
        }
コード例 #5
0
ファイル: HZVideoAd.cs プロジェクト: taocong810/WordSearch
        /// <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
            HZVideoAdAndroid.ShowWithOptions(showOptions);
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZVideoAdIOS.ShowWithOptions(showOptions);
            #endif
        }
コード例 #6
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
            HZVideoAdAndroid.ShowWithOptions(showOptions);
                #elif UNITY_IPHONE
            HZVideoAdIOS.ShowWithOptions(showOptions);
                #endif
            #else
            UnityEngine.Debug.LogWarning("Call received to show an HZVideoAd, 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
        }
コード例 #7
0
 // Token: 0x06000102 RID: 258 RVA: 0x00003DC1 File Offset: 0x00001FC1
 public static bool IsAvailable(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     return(HZVideoAdAndroid.IsAvailable(tag));
 }
コード例 #8
0
 // Token: 0x06000100 RID: 256 RVA: 0x00003DA9 File Offset: 0x00001FA9
 public static void Fetch(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     HZVideoAdAndroid.Fetch(tag);
 }