FBNativeAdViewAttributes
Une version plus récente de cette classe est disponible. Rendez-vous sur la dernière version.

Describes the look and feel of a native ad view.

Conforms to:NSCopying
Superclass:NSObject
Declared in:FBNativeAdViewAttributes.h
Propriétés
autoplayEnabled

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

@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled;
Déclaré dans : FBNativeAdViewAttributes.h
backgroundColor

Background color of the native ad view.

@property (nonatomic, copy, nullable) UIColor *backgroundColor;
Déclaré dans : FBNativeAdViewAttributes.h
buttonBorderColor

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

@property (nonatomic, copy, nullable) UIColor *buttonBorderColor;
Déclaré dans : FBNativeAdViewAttributes.h
buttonColor

Background color of the call to action button.

@property (nonatomic, copy, nullable) UIColor *buttonColor;
Déclaré dans : FBNativeAdViewAttributes.h
buttonTitleColor

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

@property (nonatomic, copy, nullable) UIColor *buttonTitleColor;
Déclaré dans : FBNativeAdViewAttributes.h
buttonTitleFont

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

@property (nonatomic, copy, nullable) UIFont *buttonTitleFont;
Déclaré dans : FBNativeAdViewAttributes.h
descriptionColor

Color of the description label.

@property (nonatomic, copy, nullable) UIColor *descriptionColor;
Déclaré dans : FBNativeAdViewAttributes.h
descriptionFont

Font of the description label.

@property (nonatomic, copy, nullable) UIFont *descriptionFont;
Déclaré dans : FBNativeAdViewAttributes.h
titleColor

Color of the title label.

@property (nonatomic, copy, nullable) UIColor *titleColor;
Déclaré dans : FBNativeAdViewAttributes.h
titleFont

Font of the title label.

@property (nonatomic, copy, nullable) UIFont *titleFont;
Déclaré dans : FBNativeAdViewAttributes.h
Méthodes Class
defaultAttributesForType:

Returns default attributes for a given type.

ParamètreDescription
type

The type for this layout.

+ (nonnull instancetype) defaultAttributesForType:(FBNativeAdViewType)type;
Déclaré dans : FBNativeAdViewAttributes.h
Méthodes d’instance
initWithDictionary:

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

- (nonnull instancetype)
initWithDictionary: (nonnull NSDictionary *)dict
NS_DESIGNATED_INITIALIZER;
Déclaré dans : FBNativeAdViewAttributes.h