YMANativeAdView

Objective-C

@interface YMANativeAdView : UIView

Swift

class YMANativeAdView : UIView

This class is responsible for creating the layout of an ad without using a template.

  1. Properties
  2. ageLabel
  3. bodyLabel
  4. callToActionButton
  5. domainLabel
  6. faviconImageView
  7. feedbackButton
  8. iconImageView
  9. mediaView
  10. priceLabel
  11. ratingView
  12. reviewCountLabel
  13. sponsoredLabel
  14. titleLabel
  15. warningLabel
  16. ad

Properties

ageLabel

UILabel for information about age restrictions.

Declaration

Objective-C

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

Swift

@IBOutlet var ageLabel: UILabel? { get set }

bodyLabel

UILabel for the main ad text.

Declaration

Objective-C

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

Swift

@IBOutlet var bodyLabel: UILabel? { get set }

callToActionButton

UIButton for a call-to-action button.

Declaration

Objective-C

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

Swift

@IBOutlet var callToActionButton: UIButton? { get set }

domainLabel

UILabel for domain data.

Declaration

Objective-C

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

Swift

@IBOutlet var domainLabel: UILabel? { get set }

faviconImageView

UIImageView for the favicon.

Declaration

Objective-C

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

Swift

@IBOutlet var faviconImageView: UIImageView? { get set }

feedbackButton

UIButton for handling reasons for ad closing.

Declaration

Objective-C

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

Swift

@IBOutlet var feedbackButton: UIButton? { get set }

iconImageView

UIImageView for the app icon.

Declaration

Objective-C

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

Swift

@IBOutlet var iconImageView: UIImageView? { get set }

mediaView

YMANativeMediaView for the media content.

Declaration

Objective-C

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

Swift

@IBOutlet var mediaView: YMANativeMediaView? { get set }

priceLabel

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 }

ratingView

UIView that implements the YMARating protocol for the app rating data.

Declaration

Objective-C

@property (nonatomic, strong, nullable) UIView<YMARating> *ratingView;

reviewCountLabel

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 }

sponsoredLabel

UILabel for data on the ad network.

Declaration

Objective-C

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

Swift

@IBOutlet var sponsoredLabel: UILabel? { get set }

titleLabel

UILabel for the ad title.

Declaration

Objective-C

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

Swift

@IBOutlet var titleLabel: UILabel? { get set }

warningLabel

UILabel for 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;