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:
    5. + stickySizeWithContainerWidth:

Properties

size

The initial size of the banner.

@property (nonatomic, assign, readonly) CGSize size

Discussion

Note: 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 matching the device screen. Banner height depends on what types of ad blocks are selected in the Partner interface.

+ (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.

+ flexibleSizeWithContainerWidth:

Creates an object of the YMAAdSize class with the specified maximum width of 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.

+ (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.

+ 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.

+ stickySizeWithContainerWidth:

Creates an object of the YMAAdSize class with the specified width of a sticky banner.

+ (instancetype)stickySizeWithContainerWidth:(CGFloat)width

Parameters

width

Width of the banner.

Return Value

An object of the YMAAdSize class with the specified width of a sticky banner.


Generated by appledoc 2.2.1 (build 1334).