Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

36 rader
1.2 KiB

  1. // Copyright 2016 Google Inc. All Rights Reserved.
  2. #import <Foundation/Foundation.h>
  3. #import <GoogleMobileAds/GoogleMobileAds.h>
  4. #import "GADUTypes.h"
  5. @interface GADUPluginUtil : NSObject
  6. /// Whether the Unity app should be paused when a full screen ad is displayed.
  7. @property(class) BOOL pauseOnBackground;
  8. /// Returns the Unity view controller.
  9. + (UIViewController *)unityGLViewController;
  10. /// Position view in the parent view, corresponding to the adPosition.
  11. + (void)positionView:(UIView *)view
  12. inParentView:(UIView *)parentView
  13. adPosition:(GADAdPosition)adPosition;
  14. /// Position view in the parent view, corresponding to the CGPoint.
  15. + (void)positionView:(UIView *)view
  16. inParentView:(UIView *)parentView
  17. customPosition:(CGPoint)adPosition;
  18. /// Returns a GADAdSize for a specified width and height.
  19. + (GADAdSize)adSizeForWidth:(CGFloat)width height:(CGFloat)height;
  20. /// If requesting smart banner landscape, returns the custom size for landscape smart banners which
  21. /// is full width of the safe area and auto height. Assumes that the application window is visible.
  22. /// If requesting any other ad size, returns the un-modified ad size.
  23. + (GADAdSize)safeAdSizeForAdSize:(GADAdSize)adSize;
  24. @end