Example #1
0
 /// <summary>
 /// Gets the current banner ad's dimensions.
 /// </summary>
 /// <returns><c>true</c>, if the dimensions were successfully retrieved, <c>false</c> otherwise.</returns>
 /// <param name="banner">An out param where the dimensions of the current banner ad will be stored, if they are retrieved successfully.</param>
 public static bool GetCurrentBannerDimensions(out Rect banner)
 {
     #if UNITY_ANDROID
     return(HZBannerAdAndroid.GetCurrentBannerDimensions(out banner));
     #elif UNITY_IPHONE && !UNITY_EDITOR
     return(HZBannerAdIOS.GetCurrentBannerDimensions(out banner));
     #else
     banner = new Rect(0, 0, 0, 0);
     return(false);
     #endif
 }
Example #2
0
 // Token: 0x0600009D RID: 157 RVA: 0x00003361 File Offset: 0x00001561
 public static bool GetCurrentBannerDimensions(out Rect banner)
 {
     return(HZBannerAdAndroid.GetCurrentBannerDimensions(out banner));
 }