Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Hides the current banner ad, if there is one, from the view. The next call to ShowWithOptions will unhide the banner ad hidden by this method.
        /// </summary>
        public static void Hide()
        {
            #if UNITY_ANDROID
            HZBannerAdAndroid.Hide();
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZBannerAdIOS.Hide();
            #endif
        }
Exemplo n.º 3
0
        /// <summary>
        /// Destroys the current banner ad, if there is one. The next call to ShowWithOptions() will create a new banner ad.
        /// </summary>
        public static void Destroy()
        {
            #if UNITY_ANDROID
            HZBannerAdAndroid.Destroy();
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZBannerAdIOS.Destroy();
            #endif
        }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the current banner ad's dimensions.
 /// </summary>
 /// <returns><c>true</c>, if the dimensions were successfully retrieved, <c>false</c> otherwise.</returns>
 /// <param name="banner">An out param where the dimensions of the current banner ad will be stored, if they are retrieved successfully.</param>
 public static bool GetCurrentBannerDimensions(out Rect banner)
 {
     #if UNITY_ANDROID
     return(HZBannerAdAndroid.GetCurrentBannerDimensions(out banner));
     #elif UNITY_IPHONE && !UNITY_EDITOR
     return(HZBannerAdIOS.GetCurrentBannerDimensions(out banner));
     #else
     banner = new Rect(0, 0, 0, 0);
     return(false);
     #endif
 }
Exemplo n.º 5
0
 /// <summary>
 /// Destroys the current banner ad, if there is one. The next call to ShowWithOptions() will create a new banner ad.
 /// </summary>
 public static void Destroy()
 {
     #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
         #if UNITY_ANDROID
     HZBannerAdAndroid.Destroy();
         #elif UNITY_IPHONE
     HZBannerAdIOS.Destroy();
         #endif
     #else
     #endif
 }
Exemplo n.º 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
        }
Exemplo n.º 7
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_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
        }
Exemplo n.º 8
0
 // Token: 0x0600009F RID: 159 RVA: 0x00003370 File Offset: 0x00001570
 public static void Destroy()
 {
     HZBannerAdAndroid.Destroy();
 }
Exemplo n.º 9
0
 // Token: 0x0600009E RID: 158 RVA: 0x00003369 File Offset: 0x00001569
 public static void Hide()
 {
     HZBannerAdAndroid.Hide();
 }
Exemplo n.º 10
0
 // Token: 0x0600009D RID: 157 RVA: 0x00003361 File Offset: 0x00001561
 public static bool GetCurrentBannerDimensions(out Rect banner)
 {
     return(HZBannerAdAndroid.GetCurrentBannerDimensions(out banner));
 }