MANativeAdViewBinder.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //
  2. // MANativeAdViewBinder.h
  3. // AppLovinSDK
  4. //
  5. // Created by Santosh Bagadi on 11/26/21.
  6. //
  7. @class MANativeAdViewBinderBuilder;
  8. NS_ASSUME_NONNULL_BEGIN
  9. typedef void (^MANativeAdViewBinderBuilderBlock) (MANativeAdViewBinderBuilder *builder);
  10. @interface MANativeAdViewBinderBuilder : NSObject
  11. @property (nonatomic, assign) NSInteger titleLabelTag;
  12. @property (nonatomic, assign) NSInteger advertiserLabelTag;
  13. @property (nonatomic, assign) NSInteger bodyLabelTag;
  14. @property (nonatomic, assign) NSInteger iconImageViewTag;
  15. @property (nonatomic, assign) NSInteger optionsContentViewTag;
  16. @property (nonatomic, assign) NSInteger starRatingContentViewTag;
  17. @property (nonatomic, assign) NSInteger mediaContentViewTag;
  18. @property (nonatomic, assign) NSInteger callToActionButtonTag;
  19. @end
  20. @interface MANativeAdViewBinder : NSObject
  21. /**
  22. * A non-zero tag for the title label view to be rendered. The maximum length will be 50 characters.
  23. */
  24. @property (nonatomic, assign, readonly) NSInteger titleLabelTag;
  25. /**
  26. * A non-zero tag for advertiser label view to be rendered. The maximum length will be 25 characters.
  27. */
  28. @property (nonatomic, assign, readonly) NSInteger advertiserLabelTag;
  29. /**
  30. * A non-zero tag for body label view to be rendered. The maximum length will be 150 characters.
  31. */
  32. @property (nonatomic, assign, readonly) NSInteger bodyLabelTag;
  33. /**
  34. * A non-zero tag for icon image view to be rendered.
  35. */
  36. @property (nonatomic, assign, readonly) NSInteger iconImageViewTag;
  37. /**
  38. * A non-zero tag for options content view to be rendered.
  39. */
  40. @property (nonatomic, assign, readonly) NSInteger optionsContentViewTag;
  41. /**
  42. * A non-zero tag for star rating content view to be rendered.
  43. */
  44. @property (nonatomic, assign, readonly) NSInteger starRatingContentViewTag;
  45. /**
  46. * A non-zero tag for media content view to be rendered.
  47. */
  48. @property (nonatomic, assign, readonly) NSInteger mediaContentViewTag;
  49. /**
  50. * A non-zero tag for call to action button view to be rendered. The maximum length will be 15 characters.
  51. */
  52. @property (nonatomic, assign, readonly) NSInteger callToActionButtonTag;
  53. /**
  54. * Instantiates a @c MANativeAdViewBinder from a builder.
  55. */
  56. - (instancetype)initWithBuilderBlock:(MANativeAdViewBinderBuilderBlock)builder;
  57. - (instancetype)init NS_UNAVAILABLE;
  58. @end
  59. NS_ASSUME_NONNULL_END