// 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); } }
// 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]); }
// 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(); }
public static void InitReceiver() { if (_instance == null) { GameObject receiverObject = new GameObject("HeyzapAds"); DontDestroyOnLoad(receiverObject); _instance = receiverObject.AddComponent <HeyzapAds>(); } }
/// <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 }
/// <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 }
/// <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 }
/// <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 }
/// <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 }
/// <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)); }
// Token: 0x060000D3 RID: 211 RVA: 0x00003925 File Offset: 0x00001B25 public static void Fetch(string tag) { tag = HeyzapAds.TagForString(tag); HZInterstitialAdAndroid.Fetch(tag); }
public static void InitReceiver(){ if (_instance == null) { GameObject receiverObject = new GameObject("HeyzapAds"); DontDestroyOnLoad(receiverObject); _instance = receiverObject.AddComponent<HeyzapAds>(); } }
public static void start(string publisher_id, int options) { HeyzapAds.Start(publisher_id, options); }
// Token: 0x060000D5 RID: 213 RVA: 0x0000393D File Offset: 0x00001B3D public static bool IsAvailable(string tag) { tag = HeyzapAds.TagForString(tag); return(HZInterstitialAdAndroid.IsAvailable(tag)); }
public static bool onBackPressed() { return(HeyzapAds.OnBackPressed()); }
public static bool isNetworkInitialized(string network) { return(HeyzapAds.IsNetworkInitialized(network)); }
public static void showDebugLogs() { HeyzapAds.ShowDebugLogs(); }
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); }
public static void pauseExpensiveWork() { HeyzapAds.PauseExpensiveWork(); }
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); }
public static string getRemoteData() { return(HeyzapAds.GetRemoteData()); }
public static void resumeExpensiveWork() { HeyzapAds.ResumeExpensiveWork(); }
public static void showMediationTestSuite() { HeyzapAds.ShowMediationTestSuite(); }