YMANativeTemplateAppearance

Objective-C

@interface YMANativeTemplateAppearance : NSObject <NSCopying, NSMutableCopying>

Swift

class YMANativeTemplateAppearance : NSObject, NSCopying, NSMutableCopying

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

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

Properties

borderWidth

Width of the border.

Declaration

Objective-C

@property (nonatomic, readonly) CGFloat borderWidth;

Swift

var borderWidth: CGFloat { get }

borderColor

Color of the border.

Declaration

Objective-C

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

Swift

var borderColor: UIColor { get }

backgroundColor

Background color.

Declaration

Objective-C

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

Swift

var backgroundColor: UIColor { get }

contentPadding

Horizontal (left and right) margins between the content and the edges of the ad. Measured in logical pixels.

Declaration

Objective-C

@property (nonatomic, readonly) YMAHorizontalOffset contentPadding;

Swift

var contentPadding: YMAHorizontalOffset { get }

imageMargins

The horizontal margins around the image, relative to the ad content. 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.

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

Declaration

Objective-C

@property (nonatomic, readonly) YMAHorizontalOffset imageMargins;

Swift

var imageMargins: YMAHorizontalOffset { get }

ageAppearance

Appearance settings for the text with age restrictions (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var ageAppearance: YMALabelAppearance? { get }

bodyAppearance

Appearance settings for the main ad text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var bodyAppearance: YMALabelAppearance? { get }

callToActionAppearance

Appearance settings for a call-to-action button, such as the Install button (YMAButtonAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var callToActionAppearance: YMAButtonAppearance? { get }

domainAppearance

Appearance settings for the domain text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var domainAppearance: YMALabelAppearance? { get }

faviconAppearance

Appearance settings for the favicon (YMAImageAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var faviconAppearance: YMAImageAppearance? { get }

feedbackAppearance

Appearance settings for the feedback menu icon (YMAImageAppearance).

Declaration

Objective-C

@property (nonatomic, copy, readonly, nullable) YMAImageAppearance *feedbackAppearance;

Swift

@NSCopying var feedbackAppearance: YMAImageAppearance? { get }

imageAppearance

Appearance settings for the image (YMAImageAppearance).

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

Declaration

Objective-C

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

Swift

@NSCopying var imageAppearance: YMAImageAppearance? { get }

ratingAppearance

Appearance settings for the rating (YMARatingAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var ratingAppearance: YMARatingAppearance? { get }

sponsoredAppearance

Appearance settings for the ad network text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var sponsoredAppearance: YMALabelAppearance? { get }

titleAppearance

Appearance settings for the ad title text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var titleAppearance: YMALabelAppearance? { get }

reviewCountAppearance

Appearance settings for the number of app reviews (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var reviewCountAppearance: YMALabelAppearance? { get }

warningAppearance

Appearance settings for the warning text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var warningAppearance: YMALabelAppearance? { get }

Methods

+defaultAppearance

Creates an object with default settings for the standard layout.

Declaration

Objective-C

+ (nonnull instancetype)defaultAppearance;

Swift

class func `default`() -> Self

Return Value

Returns an object with default settings for the standard layout.