Menu

ATNativePrepareInfo

Native ad preparation info class, used to configure references to various UI components of a native ad, including text labels, image views, media containers, interaction buttons, etc. Developers use this class to associate custom UI components with ad content.

Copy
@interface ATNativePrepareInfo : NSObject

// Basic ad info display components
@property(nonatomic, strong) UILabel *advertiserLabel;     // Advertiser name label
@property(nonatomic, strong) UILabel *textLabel;           // Ad description text label
@property(nonatomic, strong) UILabel *titleLabel;          // Ad title label
@property(nonatomic, strong) UILabel *ctaLabel;            // Call To Action label (e.g., "Download Now")
@property(nonatomic, strong) UILabel *ratingLabel;         // Rating label

// Ad image related components
@property(nonatomic, strong) UIImageView *iconImageView;   // Icon image view
@property(nonatomic, strong) UIImageView *mainImageView;   // Main image view
@property(nonatomic, strong) UIImageView *logoImageView;   // Logo image view

// Ad interaction components
@property(nonatomic, strong) UIButton *dislikeButton;      // Dislike button
@property(nonatomic, strong) UIView *mediaView;            // Media view (for video, etc.)

// Ad additional info components
@property(nonatomic, strong) UILabel *domainLabel;         // Domain label
@property(nonatomic, strong) UILabel *warningLabel;        // Warning label

// Media container view
@property(nonatomic, strong) UIView *mediaContainerView;   // Media content container view

/**
 * Load ad preparation info
 * @param loadPrepareInfoBlock Callback block for configuring ad preparation info
 * @return Configured ad preparation info instance
 */
+ (instancetype)loadPrepareInfo: (void(^)(ATNativePrepareInfo *prepareInfo))loadPrepareInfoBlock;

@end
Previous
ATNativeBannerView
Next
ATNativeRenderer
Last modified: 2026-07-08Powered by