/// <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(HZInterstitialAdAndroid.IsAvailable()); #elif UNITY_IPHONE && !UNITY_EDITOR return(HZInterstitialAdIOS.IsAvailable()); #else return(false); #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_ANDROID return(HZInterstitialAdAndroid.IsAvailable(tag)); #elif UNITY_IPHONE && !UNITY_EDITOR return(HZInterstitialAdIOS.IsAvailable(tag)); #else return(false); #endif }