Exemple #1
0
        /// <summary>
        /// Shows a banner ad with the given position and the default ad tag.
        /// </summary>
        /// <param name="position">A string describing the screen position to place the banner ad in; should be one of HZBannerShowOptions.POSITION_TOP or HZBannerShowOptions.POSITION_BOTTOM.</param>
        public static void show(string position)
        {
            HZBannerShowOptions showOptions = new HZBannerShowOptions();

            showOptions.Position = position;
            HZBannerAd.ShowWithOptions(showOptions);
        }
Exemple #2
0
 // Token: 0x0600009C RID: 156 RVA: 0x0000334C File Offset: 0x0000154C
 public static void ShowWithOptions(HZBannerShowOptions showOptions)
 {
     if (showOptions == null)
     {
         showOptions = new HZBannerShowOptions();
     }
     HZBannerAdAndroid.ShowWithOptions(showOptions);
 }
Exemple #3
0
        /// <summary>
        /// Shows a banner ad with the given ad tag and position.
        /// </summary>
        /// <param name="position">A string describing the screen position to place the banner ad in; should be one of HZBannerShowOptions.POSITION_TOP or HZBannerShowOptions.POSITION_BOTTOM.</param>
        /// <param name="tag">The ad tag for the banner ad to be shown.</param>
        public static void showWithTag(string position, string tag)
        {
            HZBannerShowOptions showOptions = new HZBannerShowOptions();

            showOptions.Position = position;
            showOptions.Tag      = tag;
            HZBannerAd.ShowWithOptions(showOptions);
        }
Exemple #4
0
        public static void ShowWithOptions(HZBannerShowOptions showOptions)
        {
            if (Application.platform != RuntimePlatform.Android)
            {
                return;
            }

            AndroidJNIHelper.debug = false;
            using (AndroidJavaClass jc = new AndroidJavaClass("com.heyzap.sdk.extensions.unity3d.UnityHelper")) {
                jc.CallStatic("showBanner", showOptions.Position, showOptions.Tag, showOptions.SelectedAdMobSize.ToString(), showOptions.SelectedFacebookSize.ToString(), showOptions.SelectedInmobiSize.ToString());
            }
        }
Exemple #5
0
        /// <summary>
        /// Shows a banner ad with the given options.
        /// </summary>
        /// <param name="showOptions">The options with which to show the banner ad, or the defaults if <c>null</c> </param>
        public static void ShowWithOptions(HZBannerShowOptions showOptions) {
            if (showOptions == null) {
                showOptions = new HZBannerShowOptions();
            }

            #if UNITY_ANDROID
            HZBannerAdAndroid.ShowWithOptions(showOptions);
            #endif
            
            #if UNITY_IPHONE && !UNITY_EDITOR
            HZBannerAdIOS.ShowWithOptions(showOptions);
            #endif
        }
Exemple #6
0
        /// <summary>
        /// Shows a banner ad with the given options.
        /// </summary>
        /// <param name="showOptions">The options with which to show the banner ad, or the defaults if <c>null</c> </param>
        public static void ShowWithOptions(HZBannerShowOptions showOptions)
        {
            if (showOptions == null)
            {
                showOptions = new HZBannerShowOptions();
            }

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

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZBannerAdIOS.ShowWithOptions(showOptions);
            #endif
        }
Exemple #7
0
 // Token: 0x060000B1 RID: 177 RVA: 0x00003554 File Offset: 0x00001754
 public static void ShowWithOptions(HZBannerShowOptions showOptions)
 {
     if (Application.platform != RuntimePlatform.Android)
     {
         return;
     }
     AndroidJNIHelper.debug = false;
     using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.heyzap.sdk.extensions.unity3d.UnityHelper"))
     {
         androidJavaClass.CallStatic("showBanner", new object[]
         {
             showOptions.Tag,
             showOptions.Position
         });
     }
 }
        /// <summary>
        /// Shows a banner ad with the given options.
        /// </summary>
        /// <param name="showOptions">The options with which to show the banner ad, or the defaults if <c>null</c> </param>
        public static void ShowWithOptions(HZBannerShowOptions showOptions)
        {
            if (showOptions == null)
            {
                showOptions = new HZBannerShowOptions();
            }

            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            HZBannerAdAndroid.ShowWithOptions(showOptions);
                #elif UNITY_IPHONE
            HZBannerAdIOS.ShowWithOptions(showOptions);
                #endif
            #else
            UnityEngine.Debug.LogWarning("Call received to show an HZBannerAd, 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
        }
Exemple #9
0
 public static void ShowWithOptions(HZBannerShowOptions showOptions)
 {
     hz_ads_show_banner(showOptions.Position, showOptions.Tag, showOptions.SelectedAdMobSize.ToString(), showOptions.SelectedFacebookSize.ToString(), showOptions.SelectedInmobiSize.ToString());
 }
Exemple #10
0
        public static void ShowWithOptions(HZBannerShowOptions showOptions) {
            if(Application.platform != RuntimePlatform.Android) return;

            AndroidJNIHelper.debug = false;
            using (AndroidJavaClass jc = new AndroidJavaClass("com.heyzap.sdk.extensions.unity3d.UnityHelper")) { 
                jc.CallStatic("showBanner", showOptions.Tag, showOptions.Position);
            }
        }
Exemple #11
0
 public static void ShowWithOptions(HZBannerShowOptions showOptions) {
     hz_ads_show_banner(showOptions.Position, showOptions.Tag);
 }
Exemple #12
0
 /// <summary>
 /// Shows a banner ad with the given position and the default ad tag.
 /// </summary>
 /// <param name="position">A string describing the screen position to place the banner ad in; should be one of HZBannerShowOptions.POSITION_TOP or HZBannerShowOptions.POSITION_BOTTOM.</param>
 public static void show(string position) {
     HZBannerShowOptions showOptions = new HZBannerShowOptions();
     showOptions.Position = position;
     HZBannerAd.ShowWithOptions(showOptions);
 }
Exemple #13
0
 /// <summary>
 /// Shows a banner ad with the given ad tag and position.
 /// </summary>
 /// <param name="position">A string describing the screen position to place the banner ad in; should be one of HZBannerShowOptions.POSITION_TOP or HZBannerShowOptions.POSITION_BOTTOM.</param>
 /// <param name="tag">The ad tag for the banner ad to be shown.</param>
 public static void showWithTag(string position, string tag) {
     HZBannerShowOptions showOptions = new HZBannerShowOptions();
     showOptions.Position = position;
     showOptions.Tag = tag;
     HZBannerAd.ShowWithOptions(showOptions);
 }
 public static void ShowWithOptions(HZBannerShowOptions showOptions)
 {
     hz_ads_show_banner(showOptions.Position, showOptions.Tag);
 }