YMANativeTemplateAppearance Class Reference

Inherits from NSObject
Conforms to NSCopying
NSMutableCopying
Declared in YMANativeTemplateAppearance.h

Overview

Class with the default (fixed) settings for the standard ad layout. If you want to edit the default settings of the standard appearance, use the YMAMutableNativeTemplateAppearance class.

  1. borderWidth
  2. borderColor
  3. backgroundColor
  4. contentPadding
  5. imageMargins
  6. ageAppearance
  7. bodyAppearance
  8. callToActionAppearance
  9. domainAppearance
  10. faviconAppearance
  11. imageAppearance
  12. ratingAppearance
  13. sponsoredAppearance
  14. titleAppearance
  15. reviewCountAppearance
  16. warningAppearance
  17. + defaultAppearance

borderWidth

Width of the border.

@property (nonatomic, assign, readonly) CGFloat borderWidth

borderColor

Color of the border.

@property (nonatomic, strong, readonly) UIColor *borderColor

backgroundColor

Background color.

@property (nonatomic, strong, readonly) UIColor *backgroundColor

contentPadding

Horizontal (left and right) margins between the content and the edges of the ad.

@property (nonatomic, assign, readonly) YMAHorizontalOffset contentPadding

Discussion

Measured in logical pixels.

imageMargins

The horizontal margins around the image, relative to the ad content.

@property (nonatomic, assign, readonly) YMAHorizontalOffset imageMargins

Discussion

The left margin is relative to the left edge of the content. The right margin is the gap between the right edge of the image and the left edge of the text.

Warning: It doesn’t apply to large images that are placed under the main ad text and cover the entire width of the ad.

ageAppearance

Appearance settings for the text with age restrictions.

@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *ageAppearance

bodyAppearance

Appearance settings for the main ad text.

@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *bodyAppearance

callToActionAppearance

Appearance settings for a call-to-action button (for example, the Install button).

@property (nonatomic, copy, readonly, nullable) YMAButtonAppearance *callToActionAppearance

domainAppearance

Appearance settings for the domain text.

@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *domainAppearance

faviconAppearance

Appearance settings for the favicon.

@property (nonatomic, copy, readonly, nullable) YMAImageAppearance *faviconAppearance

imageAppearance

Appearance settings for the image.

@property (nonatomic, copy, readonly, nullable) YMAImageAppearance *imageAppearance

Discussion

Warning: It doesn’t apply to large images that are placed under the main ad text and cover the entire width of the ad.

ratingAppearance

Appearance settings for the rating.

@property (nonatomic, copy, readonly, nullable) YMARatingAppearance *ratingAppearance

sponsoredAppearance

Appearance settings for the ad network text.

@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *sponsoredAppearance

titleAppearance

Appearance settings for the ad title text.

@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *titleAppearance

reviewCountAppearance

Appearance settings for the number of app reviews.

@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *reviewCountAppearance

warningAppearance

Appearance settings for the warning text.

@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *warningAppearance

+ defaultAppearance

Creates an object with default settings for the standard design.

+ (instancetype)defaultAppearance

Return Value

Returns an object with the default settings for the standard design.


Generated by appledoc 2.2.1 (build 1334).