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.

  • UILabel for information about age restrictions.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *ageLabel;

    Swift

    @IBOutlet var ageLabel: UILabel? { get set }
  • UILabel for the main ad text.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *bodyLabel;

    Swift

    @IBOutlet var bodyLabel: UILabel? { get set }
  • UIButton with a call to action.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIButton *callToActionButton;

    Swift

    @IBOutlet var callToActionButton: UIButton? { get set }
  • UILabel for domain data.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *domainLabel;

    Swift

    @IBOutlet var domainLabel: UILabel? { get set }
  • UIImageView for the favicon.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIImageView *faviconImageView;

    Swift

    @IBOutlet var faviconImageView: UIImageView? { get set }
  • UIButton for handling reasons for ad closing.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIButton *feedbackButton;

    Swift

    @IBOutlet var feedbackButton: UIButton? { get set }
  • UIImageView for the icon.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIImageView *iconImageView;

    Swift

    @IBOutlet var iconImageView: UIImageView? { get set }
  • NativeMediaView for the ad’s media.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) YMANativeMediaView *mediaView;

    Swift

    @IBOutlet var mediaView: YMANativeMediaView? { get set }
  • UILabel for data on the price of the advertised app.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *priceLabel;

    Swift

    @IBOutlet var priceLabel: UILabel? { get set }
  • UIView that implements the Rating protocol 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 }
  • UILabel for data on the number of app reviews.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *reviewCountLabel;

    Swift

    @IBOutlet var reviewCountLabel: UILabel? { get set }
  • UILabel for information about the ad network.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *sponsoredLabel;

    Swift

    @IBOutlet var sponsoredLabel: UILabel? { get set }
  • UILabel for the ad title.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *titleLabel;

    Swift

    @IBOutlet var titleLabel: UILabel? { get set }
  • UILabel for the warning.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UILabel *warningLabel;

    Swift

    @IBOutlet var warningLabel: UILabel? { get set }
  • ad

    The ad object.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) id<YMANativeAd> ad;

    Swift

    var ad: (any YMANativeAd)? { get }