YMAAdSize Class Reference

Inherits from NSObject
Declared in YMAAdSize.h

Overview

This class is responsible for the banner size.

  1. Properties
    1. size
    2. attributes
  2. Methods
    1. + fixedSizeWithCGSize:
    2. + flexibleSize
    3. + flexibleSizeWithContainerWidth:
    4. + flexibleSizeWithCGSize:

Properties

size

The initial size of the banner.

@property (nonatomic, assign, readonly) CGSize size

Discussion

The actual size of the banner is determined when calling the [YMAAdViewDelegate adViewDidLoad:] method of the YMAAdViewDelegate class.

attributes

Attributes.

@property (nonatomic, copy, readonly) NSDictionary *attributes

Methods

+ fixedSizeWithCGSize:

Creates an object of the YMAAdSize class with the specified maximum height and width of the banner.

+ (instancetype)fixedSizeWithCGSize:(CGSize)size

Parameters

size

Maximum size available for a banner.

Return Value

An object of the YMAAdSize class with the fixed size.

+ flexibleSize

Creates an object of the YMAAdSize class with the width of a banner appropriate to the device screen.

+ (instancetype)flexibleSize

Return Value

An object of the YMAAdSize class with the banner size matching the device screen.

Discussion

Warning: If the actual size of the banner is less than the size of the container, an adaptive layer is drawn under the banner.

Banner height depends on what types of ad blocks are selected in the Partner interface.

+ flexibleSizeWithContainerWidth:

Creates an object of the MAAdSize class with the specified maximum width of the banner.

+ (instancetype)flexibleSizeWithContainerWidth:(CGFloat)width

Parameters

width

Width of the banner.

Return Value

An object of the YMAAdSize class with the specified maximum width of the banner.

Discussion

Warning: If the actual size of the banner is less than the size of the container, an adaptive layer is drawn under the banner.

The actual size of the banner is determined when calling the [YMAAdViewDelegate adViewDidLoad:] method of the YMAAdViewDelegate class. Banner height depends on what types of ad blocks are selected in the Partner interface.

+ flexibleSizeWithCGSize:

Creates an object of the YMAAdSize class with the specified maximum height and width of the banner.

+ (instancetype)flexibleSizeWithCGSize:(CGSize)size

Parameters

size

Maximum size available for a banner.

Return Value

An object of the YMAAdSize class with the specified maximum size of the banner.

Discussion

Warning: If the actual size of the banner is less than the size of the container, an adaptive layer is drawn under the banner.


Generated by appledoc 2.2.1 (build 1334).