YMANativeBannerView Class Reference

Inherits from UIView
Conforms to YMANativeAdImageLoadingObserver
Declared in YMANativeBannerView.h

Overview

This class is a template for native advertising layout.

  1. Properties
    1. ad
  2. Methods
    1. – applyAppearance:
    2. + heightWithAd:width:appearance:

Properties

Loaded ad (YMANativeGenericAd).

@property (nonatomic, strong, nullable) id<YMANativeGenericAd> ad

Methods

– applyAppearance:

Applies the appearance settings from the template.

- (void)applyAppearance:(YMANativeTemplateAppearance *)appearance

Parameters

appearance

Appearance of the ad (YMANativeTemplateAppearance).

+ heightWithAd:width:appearance:

Calculates the height of the ad.

+ (CGFloat)heightWithAd:(id<YMANativeGenericAd>)ad
                  width:(CGFloat)width
             appearance:(nullable YMANativeTemplateAppearance *)appearance

Parameters

ad

Loaded ad (YMANativeGenericAd).

width

The width of the ad.

appearance

Appearance of the ad (YMANativeTemplateAppearance).

Return Value

Returns the height of the ad.


Generated by appledoc 2.2.1 (build 1334).