Esempio n. 1
0
        public static void show(string tag)
        {
            HZIncentivizedShowOptions showOptions = new HZIncentivizedShowOptions();

            showOptions.Tag = tag;
            HZInterstitialAd.ShowWithOptions(showOptions);;
        }
 // Token: 0x060000B8 RID: 184 RVA: 0x000036AC File Offset: 0x000018AC
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions)
 {
     if (showOptions == null)
     {
         showOptions = new HZIncentivizedShowOptions();
     }
     HZIncentivizedAdAndroid.ShowWithOptions(showOptions);
 }
Esempio n. 3
0
        public static void ShowWithOptions(HZIncentivizedShowOptions showOptions)
        {
            if (Application.platform != RuntimePlatform.Android)
            {
                return;
            }

            AndroidJNIHelper.debug = false;
            using (AndroidJavaClass jc = new AndroidJavaClass("com.heyzap.sdk.extensions.unity3d.UnityHelper")) {
                jc.CallStatic("showIncentivized", showOptions.Tag);
            }
        }
Esempio n. 4
0
 /// <summary>
 /// Shows an ad with the given options.
 /// </summary>
 /// <param name="showOptions"> The options to show the ad with, or the default options if <c>null</c></param>
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions) {
     if (showOptions == null) {
         showOptions = new HZIncentivizedShowOptions();
     }
     
     #if UNITY_ANDROID
     HZIncentivizedAdAndroid.ShowWithOptions(showOptions);
     #endif
     
     #if UNITY_IPHONE && !UNITY_EDITOR
     HZIncentivizedAdIOS.ShowWithOptions(showOptions);
     #endif
 }
Esempio n. 5
0
        /// <summary>
        /// Shows an ad with the given options.
        /// </summary>
        /// <param name="showOptions"> The options to show the ad with, or the default options if <c>null</c></param>
        public static void ShowWithOptions(HZIncentivizedShowOptions showOptions)
        {
            if (showOptions == null)
            {
                showOptions = new HZIncentivizedShowOptions();
            }

            #if UNITY_ANDROID
            HZIncentivizedAdAndroid.ShowWithOptions(showOptions);
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZIncentivizedAdIOS.ShowWithOptions(showOptions);
            #endif
        }
Esempio n. 6
0
        /// <summary>
        /// Shows an ad with the given options.
        /// </summary>
        /// <param name="showOptions"> The options to show the ad with, or the default options if <c>null</c></param>
        public static void ShowWithOptions(HZIncentivizedShowOptions showOptions)
        {
            if (showOptions == null)
            {
                showOptions = new HZIncentivizedShowOptions();
            }

            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            HZIncentivizedAdAndroid.ShowWithOptions(showOptions);
                #elif UNITY_IPHONE
            HZIncentivizedAdIOS.ShowWithOptions(showOptions);
                #endif
            #else
            UnityEngine.Debug.LogWarning("Call received to show an HZIncentivizedAd, 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
        }
Esempio n. 7
0
 public static void show(string tag) {
     HZIncentivizedShowOptions showOptions = new HZIncentivizedShowOptions();
     showOptions.Tag = tag;
     HZInterstitialAd.ShowWithOptions(showOptions);;
 }
Esempio n. 8
0
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions)
 {
     hz_ads_show_incentivized(showOptions.Tag);
 }
Esempio n. 9
0
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions) {
     if(Application.platform != RuntimePlatform.Android) return;
     
     AndroidJNIHelper.debug = false;
     using (AndroidJavaClass jc = new AndroidJavaClass("com.heyzap.sdk.extensions.unity3d.UnityHelper")) { 
         jc.CallStatic("showIncentivized", showOptions.Tag, showOptions.IncentivizedInfo); 
     }
 }
Esempio n. 10
0
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions) {
     hz_ads_show_incentivized_with_custom_info(showOptions.Tag, showOptions.IncentivizedInfo);
 }
Esempio n. 11
0
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions)
 {
     hz_ads_show_incentivized_with_custom_info(showOptions.Tag, showOptions.IncentivizedInfo);
 }