You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.6 KiB
60 lines
1.6 KiB
#include <UIKit/UIKit.h> |
|
#include "UnityAdsBannerDelegate.h" |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
/** |
|
* An enumeration for the various ways to position the Unity Ads banner placement. |
|
*/ |
|
typedef NS_ENUM(NSInteger, UnityAdsBannerPosition) { |
|
kUnityAdsBannerPositionTopLeft, |
|
kUnityAdsBannerPositionTopCenter, |
|
kUnityAdsBannerPositionTopRight, |
|
kUnityAdsBannerPositionBottomLeft, |
|
kUnityAdsBannerPositionBottomCenter, |
|
kUnityAdsBannerPositionBottomRight, |
|
kUnityAdsBannerPositionCenter, |
|
kUnityAdsBannerPositionNone |
|
}; |
|
|
|
/** |
|
* UnityAdsBanner is a static class for handling showing and hiding the Unity Ads banner. |
|
*/ |
|
|
|
@interface UnityAdsBanner : NSObject |
|
|
|
/** |
|
* Loads a banner with the default banner placement. |
|
*/ |
|
+(void)loadBanner __attribute__((deprecated)); |
|
|
|
/** |
|
* Loads the banner with the given placement. |
|
* @param placementId The placement ID, as defined in the Unity Ads admin tools. |
|
*/ |
|
+(void)loadBanner:(nonnull NSString *)placementId __attribute__((deprecated)); |
|
|
|
/** |
|
* Destroys the current banner placement. |
|
*/ |
|
+(void)destroy __attribute__((deprecated)); |
|
|
|
+(void)setBannerPosition:(UnityAdsBannerPosition)bannerPosition __attribute__((deprecated)); |
|
|
|
/** |
|
* Provides the currently assigned `UnityAdsBannerDelegate`. |
|
* |
|
* @return The current `UnityAdsBannerDelegate`. |
|
*/ |
|
+(nullable id <UnityAdsBannerDelegate>)getDelegate __attribute__((deprecated)); |
|
|
|
/** |
|
* Asigns the banner delegate. |
|
* |
|
* @param delegate The new `UnityAdsBannerDelegate' for UnityAds to send banner callbacks to. |
|
*/ |
|
+(void)setDelegate:(id <UnityAdsBannerDelegate>)delegate __attribute__((deprecated)); |
|
|
|
@end |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|