Ejemplo n.º 1
0
 /// <summary>
 /// Returns whether or not an ad is available
 /// </summary>
 /// <returns><c>true</c>, if an ad is available, <c>false</c> otherwise.</returns>
 public static bool IsAvailable()
 {
     #if UNITY_ANDROID
     return(HZIncentivizedAdAndroid.IsAvailable());
     #elif UNITY_IPHONE && !UNITY_EDITOR
     return(HZIncentivizedAdIOS.IsAvailable());
     #else
     return(false);
     #endif
 }
Ejemplo n.º 2
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(HZIncentivizedAdAndroid.IsAvailable(tag));
            #elif UNITY_IPHONE && !UNITY_EDITOR
            return(HZIncentivizedAdIOS.IsAvailable(tag));
            #else
            return(false);
            #endif
        }