Inherits from NSObject
Conforms to NSCopying
Declared in FBNativeAdView.h

Overview

@class FBNativeAdViewLayout @abstract Describes the look and feel of a native ad view.

Properties

autoplayEnabled

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

@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled

Declared In

FBNativeAdView.h

backgroundColor

@property @abstract Background color of the native ad view.

@property (nonatomic, copy, nullable) UIColor *backgroundColor

Declared In

FBNativeAdView.h

buttonBorderColor

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

@property (nonatomic, copy, nullable) UIColor *buttonBorderColor

Declared In

FBNativeAdView.h

buttonColor

@property @abstract Background color of the call to action button.

@property (nonatomic, copy, nullable) UIColor *buttonColor

Declared In

FBNativeAdView.h

buttonTitleColor

@property @abstract Color of the call to action button’s title label.

@property (nonatomic, copy, nullable) UIColor *buttonTitleColor

Declared In

FBNativeAdView.h

buttonTitleFont

@property @abstract Font of the call to action button’s title label.

@property (nonatomic, copy, nullable) UIFont *buttonTitleFont

Declared In

FBNativeAdView.h

descriptionColor

@property @abstract Color of the description label.

@property (nonatomic, copy, nullable) UIColor *descriptionColor

Declared In

FBNativeAdView.h

descriptionFont

@property @abstract Font of the description label.

@property (nonatomic, copy, nullable) UIFont *descriptionFont

Declared In

FBNativeAdView.h

titleColor

@property @abstract Color of the title label.

@property (nonatomic, copy, nullable) UIColor *titleColor

Declared In

FBNativeAdView.h

titleFont

@property @abstract Font of the title label.

@property (nonatomic, copy, nullable) UIFont *titleFont

Declared In

FBNativeAdView.h

Class Methods

defaultAttributesForType:

@method @abstract Returns default attributes for a given type.

+ (nonnull instancetype)defaultAttributesForType:(FBNativeAdViewType)type

Parameters

type

The type for this layout.

Declared In

FBNativeAdView.h

Instance Methods

initWithDictionary:

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

- (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dict

Declared In

FBNativeAdView.h