// Copyright 2016 Google Inc. All Rights Reserved. #import #import #import "GADUTypes.h" @interface GADUPluginUtil : NSObject /// Whether the Unity app should be paused when a full screen ad is displayed. @property(class) BOOL pauseOnBackground; /// Returns the Unity view controller. + (UIViewController *)unityGLViewController; /// Position view in the parent view, corresponding to the adPosition. + (void)positionView:(UIView *)view inParentView:(UIView *)parentView adPosition:(GADAdPosition)adPosition; /// Position view in the parent view, corresponding to the CGPoint. + (void)positionView:(UIView *)view inParentView:(UIView *)parentView customPosition:(CGPoint)adPosition; /// Returns a GADAdSize for a specified width and height. + (GADAdSize)adSizeForWidth:(CGFloat)width height:(CGFloat)height; /// If requesting smart banner landscape, returns the custom size for landscape smart banners which /// is full width of the safe area and auto height. Assumes that the application window is visible. /// If requesting any other ad size, returns the un-modified ad size. + (GADAdSize)safeAdSizeForAdSize:(GADAdSize)adSize; @end