Пример #1
0
 // Token: 0x06000081 RID: 129 RVA: 0x00002FDA File Offset: 0x000011DA
 protected static void SetNetworkCallback(string network, string callback)
 {
     if (HeyzapAds.networkCallbackListener != null)
     {
         HeyzapAds.networkCallbackListener(network, callback);
     }
 }
Пример #2
0
 // Token: 0x06000080 RID: 128 RVA: 0x00002FB0 File Offset: 0x000011B0
 public void SetNetworkCallbackMessage(string message)
 {
     string[] array = message.Split(new char[]
     {
         ','
     });
     HeyzapAds.SetNetworkCallback(array[0], array[1]);
 }
Пример #3
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();
 }
Пример #4
0
 public static void InitReceiver()
 {
     if (_instance == null)
     {
         GameObject receiverObject = new GameObject("HeyzapAds");
         DontDestroyOnLoad(receiverObject);
         _instance = receiverObject.AddComponent <HeyzapAds>();
     }
 }
Пример #5
0
        /// <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(HZInterstitialAdAndroid.IsAvailable(tag));
            #elif UNITY_IPHONE && !UNITY_EDITOR
            return(HZInterstitialAdIOS.IsAvailable(tag));
            #else
            return(false);
            #endif
        }
Пример #6
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_ANDROID
            HZInterstitialAdAndroid.Fetch(tag);
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZInterstitialAdIOS.Fetch(tag);
            #endif
        }
Пример #7
0
        /// <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_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            return(HZOfferWallAdAndroid.IsAvailable(tag));
                #elif UNITY_IPHONE
            return(HZOfferWallAdIOS.IsAvailable(tag));
                #endif
            #else
            return(false);
            #endif
        }
Пример #8
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
            HZInterstitialAdAndroid.Fetch(tag);
                #elif UNITY_IPHONE
            HZInterstitialAdIOS.Fetch(tag);
                #endif
            #else
            UnityEngine.Debug.LogWarning("Call received to fetch an HZInterstitialAd, 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
        }
Пример #9
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
        }
Пример #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 && (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();
        }
 // Token: 0x060000BA RID: 186 RVA: 0x000036C9 File Offset: 0x000018C9
 public static bool IsAvailable(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     return(HZIncentivizedAdAndroid.IsAvailable(tag));
 }
Пример #12
0
 // Token: 0x060000D3 RID: 211 RVA: 0x00003925 File Offset: 0x00001B25
 public static void Fetch(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     HZInterstitialAdAndroid.Fetch(tag);
 }
Пример #13
0
 public static void InitReceiver(){
     if (_instance == null) {
         GameObject receiverObject = new GameObject("HeyzapAds");
         DontDestroyOnLoad(receiverObject);
         _instance = receiverObject.AddComponent<HeyzapAds>();
     }
 }
Пример #14
0
 public static void start(string publisher_id, int options)
 {
     HeyzapAds.Start(publisher_id, options);
 }
Пример #15
0
 // Token: 0x060000D5 RID: 213 RVA: 0x0000393D File Offset: 0x00001B3D
 public static bool IsAvailable(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     return(HZInterstitialAdAndroid.IsAvailable(tag));
 }
Пример #16
0
 public static bool onBackPressed()
 {
     return(HeyzapAds.OnBackPressed());
 }
Пример #17
0
 public static bool isNetworkInitialized(string network)
 {
     return(HeyzapAds.IsNetworkInitialized(network));
 }
Пример #18
0
 public static void showDebugLogs()
 {
     HeyzapAds.ShowDebugLogs();
 }
Пример #19
0
 public static void hideDebugLogs()
 {
     HeyzapAds.HideDebugLogs();
 }
 // Token: 0x06000100 RID: 256 RVA: 0x00003DA9 File Offset: 0x00001FA9
 public static void Fetch(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     HZVideoAdAndroid.Fetch(tag);
 }
Пример #21
0
 public static void pauseExpensiveWork()
 {
     HeyzapAds.PauseExpensiveWork();
 }
Пример #22
0
 public static void setNetworkCallbackListener(HeyzapAds.NetworkCallbackListener listener)
 {
     HeyzapAds.SetNetworkCallbackListener(listener);
 }
 // Token: 0x060000B6 RID: 182 RVA: 0x00003694 File Offset: 0x00001894
 public static void Fetch(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     HZIncentivizedAdAndroid.Fetch(tag);
 }
Пример #24
0
 public static string getRemoteData()
 {
     return(HeyzapAds.GetRemoteData());
 }
Пример #25
0
 public static void resumeExpensiveWork()
 {
     HeyzapAds.ResumeExpensiveWork();
 }
Пример #26
0
 public static void showMediationTestSuite()
 {
     HeyzapAds.ShowMediationTestSuite();
 }