NativeAdView

@objcMembers
@objc(YMANativeAdView)
@MainActor
open class NativeAdView : UIView

This class is responsible for creating the layout of a native ad.

  • UILabel for information about age restrictions.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @MainActor
    open var iconImageView: UIImageView? { get set }
  • UILabel for data on the price of the advertised app.

    Declaration

    Swift

    @MainActor
    open var priceLabel: UILabel? { get set }
  • UIView that implements the Rating protocol for data on the app rating.

    Declaration

    Swift

    @MainActor
    open var ratingView: (UIView & Rating)? { get set }
  • UILabel for data on the number of app reviews.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @MainActor
    open var warningLabel: UILabel? { get set }
  • NativeMediaView that displays the media content of the ad.

    Declaration

    Swift

    @MainActor
    open var mediaView: NativeMediaView? { get set }
  • ad

    The ad object.

    Declaration

    Swift

    @MainActor
    public internal(set) var ad: NativeAd? { get }

Lifecycle

  • Undocumented

    Declaration

    Swift

    @MainActor
    public convenience init()
  • Undocumented

    Declaration

    Swift

    @MainActor
    override public init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder: NSCoder)