public static void show(string tag) { HZIncentivizedAd.ShowWithOptions(new HZIncentivizedShowOptions { Tag = tag }); }
public static void show(string tag) { HZIncentivizedShowOptions showOptions = new HZIncentivizedShowOptions(); showOptions.Tag = tag; HZIncentivizedAd.ShowWithOptions(showOptions); }
protected static void SetCallbackState(string state) { if (HZIncentivizedAd.adDisplayListener != null) { HZIncentivizedAd.adDisplayListener(state, ""); } }
protected static void SetCallbackStateAndTag(string state, string tag) { if (HZIncentivizedAd.adDisplayListener != null) { HZIncentivizedAd.adDisplayListener(state, tag); } }
// Token: 0x060000BD RID: 189 RVA: 0x00003720 File Offset: 0x00001920 public void SetCallback(string message) { string[] array = message.Split(new char[] { ',' }); HZIncentivizedAd.SetCallbackStateAndTag(array[0], array[1]); }
public static void InitReceiver() { if (_instance == null) { GameObject receiverObject = new GameObject("HZIncentivizedAd"); DontDestroyOnLoad(receiverObject); _instance = receiverObject.AddComponent <HZIncentivizedAd>(); } }
// 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(); }
/// <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(); }
public void SetCallback(string message) { HZIncentivizedAd.SetCallbackState(message); }
public static void InitReceiver(){ if (_instance == null) { GameObject receiverObject = new GameObject("HZIncentivizedAd"); DontDestroyOnLoad(receiverObject); _instance = receiverObject.AddComponent<HZIncentivizedAd>(); } }
//provided since JS can't use default parameters /// <summary> /// Fetches an ad for the default ad tag. /// </summary> public static void Fetch() { HZIncentivizedAd.Fetch(null); }
public static void setDisplayListener(AdDisplayListener listener) { HZIncentivizedAd.SetDisplayListener(listener); }
public static bool isAvailable(string tag) { return(HZIncentivizedAd.IsAvailable(tag)); }
/// <summary> /// Shows an ad /// </summary> public static void Show() { HZIncentivizedAd.ShowWithOptions(null); }
public static void show() { HZIncentivizedAd.Show(); }
public static void fetch(string tag) { HZIncentivizedAd.Fetch(tag); }
public static void fetch() { HZIncentivizedAd.Fetch(); }
public void SetCallback(string message) { string[] displayStateParams = message.Split(','); HZIncentivizedAd.SetCallbackStateAndTag(displayStateParams[0], displayStateParams[1]); }
public static bool isAvailable() { return(HZIncentivizedAd.IsAvailable()); }
protected static IEnumerator InvokeCallbackNextFrame(string state, string tag) { yield return(null); // wait a frame HZIncentivizedAd.SetCallbackStateAndTag(state, tag); }