FBNativeAdViewAttributes
Existe una versión más reciente de esta clase. Consulta la última versión.

Describes the look and feel of a native ad view.

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

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

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

Background color of the native ad view.

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

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

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

Background color of the call to action button.

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

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

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

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

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

Color of the description label.

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

Font of the description label.

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

Color of the title label.

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

Font of the title label.

@property (nonatomic, copy, nullable) UIFont *titleFont;
Declarado en: FBNativeAdViewAttributes.h
Métodos de clase
defaultAttributesForType:

Returns default attributes for a given type.

ParámetroDescripción
type

The type for this layout.

+ (nonnull instancetype) defaultAttributesForType:(FBNativeAdViewType)type;
Declarado en: FBNativeAdViewAttributes.h
Métodos de instancia
initWithDictionary:

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

- (nonnull instancetype)
initWithDictionary: (nonnull NSDictionary *)dict
NS_DESIGNATED_INITIALIZER;
Declarado en: FBNativeAdViewAttributes.h