FBNativeAdViewAttributes
A more recent version of this class is available. Check out the latest version.

Describes the look and feel of a native ad view.

Conforms to:NSCopying
Inherits from:NSObject
Declared in:FBNativeAdViewAttributes.h
Properties
autoplayEnabled

Enables or disables autoplay for some types of media. Defaults to YES.

@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled;
Declared In: FBNativeAdViewAttributes.h
backgroundColor

Background color of the native ad view.

@property (nonatomic, copy, nullable) UIColor *backgroundColor;
Declared In: FBNativeAdViewAttributes.h
buttonBorderColor

Border color of the call to action button. If nil, no border is shown.

@property (nonatomic, copy, nullable) UIColor *buttonBorderColor;
Declared In: FBNativeAdViewAttributes.h
buttonColor

Background color of the call to action button.

@property (nonatomic, copy, nullable) UIColor *buttonColor;
Declared In: FBNativeAdViewAttributes.h
buttonTitleColor

Color of the call to action button's title label.

@property (nonatomic, copy, nullable) UIColor *buttonTitleColor;
Declared In: FBNativeAdViewAttributes.h
buttonTitleFont

Font of the call to action button's title label.

@property (nonatomic, copy, nullable) UIFont *buttonTitleFont;
Declared In: FBNativeAdViewAttributes.h
descriptionColor

Color of the description label.

@property (nonatomic, copy, nullable) UIColor *descriptionColor;
Declared In: FBNativeAdViewAttributes.h
descriptionFont

Font of the description label.

@property (nonatomic, copy, nullable) UIFont *descriptionFont;
Declared In: FBNativeAdViewAttributes.h
titleColor

Color of the title label.

@property (nonatomic, copy, nullable) UIColor *titleColor;
Declared In: FBNativeAdViewAttributes.h
titleFont

Font of the title label.

@property (nonatomic, copy, nullable) UIFont *titleFont;
Declared In: FBNativeAdViewAttributes.h
Class Methods
defaultAttributesForType:

Returns default attributes for a given type.

ParameterDescription
type

The type for this layout.

+ (nonnull instancetype) defaultAttributesForType:(FBNativeAdViewType)type;
Declared In: FBNativeAdViewAttributes.h