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.
- Properties
- borderWidth
- borderColor
- backgroundColor
- contentPadding
- imageMargins
- ageAppearance
- bodyAppearance
- callToActionAppearance
- domainAppearance
- faviconAppearance
- feedbackAppearance
- imageAppearance
- ratingAppearance
- sponsoredAppearance
- titleAppearance
- reviewCountAppearance
- warningAppearance
- Methods
- +defaultAppearance
Width of the border.
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat borderWidth;
Swift
var borderWidth: CGFloat { get }
Color of the border.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIColor *_Nonnull borderColor;
Swift
var borderColor: UIColor { get }
Background color.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIColor *_Nonnull backgroundColor;
Swift
var backgroundColor: UIColor { get }
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 }
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.
Declaration
Objective-C
@property (nonatomic, readonly) YMAHorizontalOffset imageMargins;
Swift
var imageMargins: YMAHorizontalOffset { get }
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 }
Appearance settings for the main ad text (YMALabelAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *bodyAppearance;
Swift
@NSCopying var bodyAppearance: YMALabelAppearance? { get }
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 }
Appearance settings for the domain text (YMALabelAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *domainAppearance;
Swift
@NSCopying var domainAppearance: YMALabelAppearance? { get }
Appearance settings for the favicon (YMAImageAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMAImageAppearance *faviconAppearance;
Swift
@NSCopying var faviconAppearance: YMAImageAppearance? { get }
Appearance settings for the feedback menu icon (YMAImageAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMAImageAppearance *feedbackAppearance;
Swift
@NSCopying var feedbackAppearance: YMAImageAppearance? { get }
Appearance settings for the image (YMAImageAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMAImageAppearance *imageAppearance;
Swift
@NSCopying var imageAppearance: YMAImageAppearance? { get }
Appearance settings for the rating (YMARatingAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMARatingAppearance *ratingAppearance;
Swift
@NSCopying var ratingAppearance: YMARatingAppearance? { get }
Appearance settings for the ad network text (YMALabelAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *sponsoredAppearance;
Swift
@NSCopying var sponsoredAppearance: YMALabelAppearance? { get }
Appearance settings for the ad title text (YMALabelAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *titleAppearance;
Swift
@NSCopying var titleAppearance: YMALabelAppearance? { get }
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 }
Appearance settings for the warning text (YMALabelAppearance
).
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) YMALabelAppearance *warningAppearance;
Swift
@NSCopying var warningAppearance: YMALabelAppearance? { get }