No Description
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.

UADSBanner.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #include <UIKit/UIKit.h>
  2. #include <UnityAds/UnityAdsBannerDelegate.h>
  3. NS_ASSUME_NONNULL_BEGIN
  4. /**
  5. * An enumeration for the various ways to position the Unity Ads banner placement.
  6. */
  7. typedef NS_ENUM (NSInteger, UnityAdsBannerPosition) {
  8. kUnityAdsBannerPositionTopLeft,
  9. kUnityAdsBannerPositionTopCenter,
  10. kUnityAdsBannerPositionTopRight,
  11. kUnityAdsBannerPositionBottomLeft,
  12. kUnityAdsBannerPositionBottomCenter,
  13. kUnityAdsBannerPositionBottomRight,
  14. kUnityAdsBannerPositionCenter,
  15. kUnityAdsBannerPositionNone
  16. };
  17. /**
  18. * UnityAdsBanner is a static class for handling showing and hiding the Unity Ads banner.
  19. */
  20. @interface UnityAdsBanner : NSObject
  21. /*
  22. * Loads the banner with the given placement.
  23. * @param placementId The placement ID, as defined in the Unity Ads admin tools.
  24. */
  25. + (void)loadBanner: (nonnull NSString *)placementId __attribute__((deprecated));
  26. /**
  27. * Destroys the current banner placement.
  28. */
  29. + (void) destroy __attribute__((deprecated));
  30. + (void)setBannerPosition: (UnityAdsBannerPosition)bannerPosition __attribute__((deprecated));
  31. /**
  32. * Provides the currently assigned `UnityAdsBannerDelegate`.
  33. *
  34. * @return The current `UnityAdsBannerDelegate`.
  35. */
  36. + (nullable id <UnityAdsBannerDelegate>)getDelegate __attribute__((deprecated));
  37. /**
  38. * Asigns the banner delegate.
  39. *
  40. * @param delegate The new `UnityAdsBannerDelegate' for UnityAds to send banner callbacks to.
  41. */
  42. + (void)setDelegate: (id <UnityAdsBannerDelegate>)delegate __attribute__((deprecated));
  43. @end
  44. NS_ASSUME_NONNULL_END