YMAMutableNativeTemplateAppearance

Objective-C

@interface YMAMutableNativeTemplateAppearance : YMANativeTemplateAppearance

Swift

class YMAMutableNativeTemplateAppearance : YMANativeTemplateAppearance

Class with editable settings for the standard button design.

  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

Properties

borderWidth

Width of the border.

Declaration

Objective-C

@property (nonatomic) CGFloat borderWidth;

Swift

var borderWidth: CGFloat { get set }

borderColor

Color of the border.

Declaration

Objective-C

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

Swift

var borderColor: UIColor { get set }

backgroundColor

Background color.

Declaration

Objective-C

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

Swift

var backgroundColor: UIColor { get set }

contentPadding

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

Declaration

Objective-C

@property (nonatomic) YMAHorizontalOffset contentPadding;

Swift

var contentPadding: YMAHorizontalOffset { get set }

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) YMAHorizontalOffset imageMargins;

Swift

var imageMargins: YMAHorizontalOffset { get set }

ageAppearance

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

Declaration

Objective-C

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

Swift

@NSCopying var ageAppearance: YMALabelAppearance? { get set }

bodyAppearance

Appearance settings for the main ad text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var bodyAppearance: YMALabelAppearance? { get set }

callToActionAppearance

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

Declaration

Objective-C

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

Swift

@NSCopying var callToActionAppearance: YMAButtonAppearance? { get set }

domainAppearance

Appearance settings for the domain text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var domainAppearance: YMALabelAppearance? { get set }

faviconAppearance

Appearance settings for the favicon (YMAImageAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var faviconAppearance: YMAImageAppearance? { get set }

feedbackAppearance

Appearance settings for the feedback menu icon (YMAImageAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var feedbackAppearance: YMAImageAppearance? { get set }

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, nullable) YMAImageAppearance *imageAppearance;

Swift

@NSCopying var imageAppearance: YMAImageAppearance? { get set }

ratingAppearance

Appearance settings for the rating (YMARatingAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var ratingAppearance: YMARatingAppearance? { get set }

sponsoredAppearance

Appearance settings for the ad network text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var sponsoredAppearance: YMALabelAppearance? { get set }

titleAppearance

Appearance settings for the ad title text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var titleAppearance: YMALabelAppearance? { get set }

reviewCountAppearance

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

Declaration

Objective-C

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

Swift

@NSCopying var reviewCountAppearance: YMALabelAppearance? { get set }

warningAppearance

Appearance settings for the warning text (YMALabelAppearance).

Declaration

Objective-C

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

Swift

@NSCopying var warningAppearance: YMALabelAppearance? { get set }