FBNativeAdViewAttributes

Describes the look and feel of a native ad view.

Conforms to:NSCopying
Superclass:NSObject
Declared in:FBNativeAdViewAttributes.h
属性
autoplayEnabled

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

@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled;
声明语言: FBNativeAdViewAttributes.h
backgroundColor

Background color of the native ad view.

@property (nonatomic, copy, nullable) UIColor *backgroundColor;
声明语言: FBNativeAdViewAttributes.h
buttonBorderColor

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

@property (nonatomic, copy, nullable) UIColor *buttonBorderColor;
声明语言: FBNativeAdViewAttributes.h
buttonColor

Background color of the call to action button.

@property (nonatomic, copy, nullable) UIColor *buttonColor;
声明语言: FBNativeAdViewAttributes.h
buttonTitleColor

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

@property (nonatomic, copy, nullable) UIColor *buttonTitleColor;
声明语言: FBNativeAdViewAttributes.h
buttonTitleFont

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

@property (nonatomic, copy, nullable) UIFont *buttonTitleFont;
声明语言: FBNativeAdViewAttributes.h
descriptionColor

Color of the description label.

@property (nonatomic, copy, nullable) UIColor *descriptionColor;
声明语言: FBNativeAdViewAttributes.h
descriptionFont

Font of the description label.

@property (nonatomic, copy, nullable) UIFont *descriptionFont;
声明语言: FBNativeAdViewAttributes.h
titleColor

Color of the title label.

@property (nonatomic, copy, nullable) UIColor *titleColor;
声明语言: FBNativeAdViewAttributes.h
titleFont

Font of the title label.

@property (nonatomic, copy, nullable) UIFont *titleFont;
声明语言: FBNativeAdViewAttributes.h
类方法
defaultAttributesForType:

Returns default attributes for a given type.

参数描述
type

The type for this layout.

+ (nonnull instancetype) defaultAttributesForType:(FBNativeAdViewType)type;
声明语言: FBNativeAdViewAttributes.h
实例方法
initWithDictionary:

This is a method to create native ad view attributes with a dictionary

- (nonnull instancetype)
initWithDictionary: (nonnull NSDictionary *)dict
NS_DESIGNATED_INITIALIZER;
声明语言: FBNativeAdViewAttributes.h