NativeBannerView
@objc(YMANativeBannerView)
@objcMembers
@MainActor
public class NativeBannerView : UIView
This class is a template for native advertising layout.
-
Loaded ad.
Declaration
Swift
@MainActor public var ad: NativeAd? { get set } -
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) -
Undocumented
Declaration
Swift
@MainActor override public func encode(with coder: NSCoder) -
Applies the appearance settings from the template.
Declaration
Swift
@objc(applyAppearance:) @MainActor public func apply(_ appearance: NativeTemplateAppearance)Parameters
appearanceAppearance of the ad.
-
Calculates the height of the ad.
Declaration
Swift
@objc(heightWithAd:width:appearance:) @MainActor public static func height( with ad: NativeAd, width: CGFloat, appearance: NativeTemplateAppearance? ) -> CGFloatParameters
adLoaded ad.
widthThe width of the ad.
appearanceAppearance of the ad.
Return Value
Returns the height of the ad.