YMANativeAdView
Objective-C
@interface YMANativeAdView : UIView
Swift
class YMANativeAdView : UIView
This class is responsible for creating the layout of an native ad without using a template.
-
UILabelfor information about age restrictions.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *ageLabel;Swift
@IBOutlet var ageLabel: UILabel? { get set } -
UILabelfor the main ad text.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *bodyLabel;Swift
@IBOutlet var bodyLabel: UILabel? { get set } -
UIButtonwith a call to action.Declaration
Objective-C
@property (nonatomic, strong, nullable) UIButton *callToActionButton;Swift
@IBOutlet var callToActionButton: UIButton? { get set } -
UILabelfor domain data.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *domainLabel;Swift
@IBOutlet var domainLabel: UILabel? { get set } -
UIImageViewfor the favicon.Declaration
Objective-C
@property (nonatomic, strong, nullable) UIImageView *faviconImageView;Swift
@IBOutlet var faviconImageView: UIImageView? { get set } -
UIButtonfor handling reasons for ad closing.Declaration
Objective-C
@property (nonatomic, strong, nullable) UIButton *feedbackButton;Swift
@IBOutlet var feedbackButton: UIButton? { get set } -
UIImageViewfor the icon.Declaration
Objective-C
@property (nonatomic, strong, nullable) UIImageView *iconImageView;Swift
@IBOutlet var iconImageView: UIImageView? { get set } -
NativeMediaViewfor the ad’s media.Declaration
Objective-C
@property (nonatomic, strong, nullable) YMANativeMediaView *mediaView;Swift
@IBOutlet var mediaView: YMANativeMediaView? { get set } -
UILabelfor data on the price of the advertised app.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *priceLabel;Swift
@IBOutlet var priceLabel: UILabel? { get set } -
UIViewthat implements theRatingprotocol for data on the app rating.Declaration
Objective-C
@property (nonatomic, strong, nullable) UIView<YMARating> *ratingView;Swift
@IBOutlet var ratingView: (any UIView & YMARating)? { get set } -
UILabelfor data on the number of app reviews.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *reviewCountLabel;Swift
@IBOutlet var reviewCountLabel: UILabel? { get set } -
UILabelfor information about the ad network.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *sponsoredLabel;Swift
@IBOutlet var sponsoredLabel: UILabel? { get set } -
UILabelfor the ad title.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *titleLabel;Swift
@IBOutlet var titleLabel: UILabel? { get set } -
UILabelfor the warning.Declaration
Objective-C
@property (nonatomic, strong, nullable) UILabel *warningLabel;Swift
@IBOutlet var warningLabel: UILabel? { get set } -
The ad object.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) id<YMANativeAd> ad;Swift
var ad: (any YMANativeAd)? { get }