Ejemplo n.º 1
0
 public void SetCallback(string message)
 {
     if (HZBannerAd.adDisplayListener != null)
     {
         HZBannerAd.adDisplayListener(message, "");
     }
 }
Ejemplo n.º 2
0
 // Token: 0x060000A3 RID: 163 RVA: 0x000033E6 File Offset: 0x000015E6
 protected static void SetCallbackStateAndTag(string state, string tag)
 {
     if (HZBannerAd.adDisplayListener != null)
     {
         HZBannerAd.adDisplayListener(state, tag);
     }
 }
Ejemplo n.º 3
0
 public static void show(string position)
 {
     HZBannerAd.ShowWithOptions(new HZBannerShowOptions
     {
         Position = position
     });
 }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
 public static void showWithTag(string position, string tag)
 {
     HZBannerAd.ShowWithOptions(new HZBannerShowOptions
     {
         Position = position,
         Tag      = tag
     });
 }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
 // Token: 0x060000A2 RID: 162 RVA: 0x000033BC File Offset: 0x000015BC
 public void SetCallback(string message)
 {
     string[] array = message.Split(new char[]
     {
         ','
     });
     HZBannerAd.SetCallbackStateAndTag(array[0], array[1]);
 }
Ejemplo n.º 8
0
 // Token: 0x06000074 RID: 116 RVA: 0x00002F50 File Offset: 0x00001150
 public static void Start(string publisher_id, int options)
 {
     HeyzapAdsAndroid.Start(publisher_id, options);
     HeyzapAds.InitReceiver();
     HZInterstitialAd.InitReceiver();
     HZVideoAd.InitReceiver();
     HZIncentivizedAd.InitReceiver();
     HZBannerAd.InitReceiver();
 }
Ejemplo n.º 9
0
 public static void InitReceiver()
 {
     if (_instance == null)
     {
         GameObject receiverObject = new GameObject("HZBannerAd");
         DontDestroyOnLoad(receiverObject);
         _instance = receiverObject.AddComponent <HZBannerAd>();
     }
 }
Ejemplo n.º 10
0
        /// <summary>
        /// Starts the Heyzap SDK. Call this method as soon as possible in your app to ensure Heyzap has time to initialize before you want to show an ad.
        /// </summary>
        /// <param name="publisher_id">Your publisher ID. This can be found on your Heyzap dashboards - see https://developers.heyzap.com/docs/unity_sdk_setup_and_requirements for more information.</param>
        /// <param name="options">A bitmask of options you can pass to this call to change the way Heyzap will work.</param>
        public static void Start(string publisher_id, int options)
        {
            #if !UNITY_EDITOR
            #if UNITY_ANDROID
            HeyzapAdsAndroid.Start(publisher_id, options);
            #endif

            #if UNITY_IPHONE
            HeyzapAdsIOS.Start(publisher_id, options);
            #endif

            HeyzapAds.InitReceiver();
            HZInterstitialAd.InitReceiver();
            HZIncentivizedAd.InitReceiver();
            HZBannerAd.InitReceiver();
            #endif
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Starts the Heyzap SDK. Call this method as soon as possible in your app to ensure Heyzap has time to initialize before you want to show an ad.
        /// </summary>
        /// <param name="publisher_id">Your publisher ID. This can be found on your Heyzap dashboards - see https://developers.heyzap.com/docs/unity_sdk_setup_and_requirements for more information.</param>
        /// <param name="options">A bitmask of options you can pass to this call to change the way Heyzap will work.</param>
        public static void Start(string publisher_id, int options)
        {
            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            HeyzapAdsAndroid.Start(publisher_id, options);
                #elif UNITY_IPHONE
            HeyzapAdsIOS.Start(publisher_id, options);
                #endif
            #else
            UnityEngine.Debug.LogError("Call received to start the Heyzap SDK, but the SDK does not function in the editor. You must use a device/emulator to receive/test ads.");
            #endif

            HeyzapAds.InitReceiver();
            HZInterstitialAd.InitReceiver();
            HZVideoAd.InitReceiver();
            HZIncentivizedAd.InitReceiver();
            HZBannerAd.InitReceiver();
            HZDemographics.InitReceiver();
        }
Ejemplo n.º 12
0
        protected static IEnumerator InvokeCallbackNextFrame(string state, string tag)
        {
            yield return(null); // wait a frame

            HZBannerAd.SetCallbackStateAndTag(state, tag);
        }
Ejemplo n.º 13
0
 public void SetCallback(string message)
 {
     string[] displayStateParams = message.Split(',');
     HZBannerAd.SetCallbackStateAndTag(displayStateParams[0], displayStateParams[1]);
 }
Ejemplo n.º 14
0
 public static void InitReceiver(){
     if (_instance == null) {
         GameObject receiverObject = new GameObject("HZBannerAd");
         DontDestroyOnLoad(receiverObject);
         _instance = receiverObject.AddComponent<HZBannerAd>();
     }
 }
Ejemplo n.º 15
0
 public static bool getCurrentBannerDimensions(out Rect banner)
 {
     return(HZBannerAd.GetCurrentBannerDimensions(out banner));
 }
Ejemplo n.º 16
0
 public static void hide()
 {
     HZBannerAd.Hide();
 }
Ejemplo n.º 17
0
 public static void destroy()
 {
     HZBannerAd.Destroy();
 }
Ejemplo n.º 18
0
 public static void setDisplayListener(HZBannerAd.AdDisplayListener listener)
 {
     HZBannerAd.SetDisplayListener(listener);
 }