iOS SDK Version

FBNativeAdViewAttributes

Objective-C
@interfaceFBNativeAdViewAttributes:NSObject<NSCopying>
Swift
classFBNativeAdViewAttributes:NSObject,NSCopying
Describes the look and feel of a native ad view.
  • This is a method to create native ad view attributes with a dictionary

    Declaration

    Objective-C
    -(nonnullinstancetype)initWithDictionary:(nonnullNSDictionary<id,id>*)dict;
    Swift
    init(dictionarydict:[AnyHashable:Any])
  • Background color of the native ad view.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*backgroundColor;
    Swift
    @NSCopyingvarbackgroundColor:UIColor?{getset}
  • Color of the title label.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*titleColor;
    Swift
    @NSCopyingvartitleColor:UIColor?{getset}
  • Color of the advertiser name label.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*advertiserNameColor;
    Swift
    @NSCopyingvaradvertiserNameColor:UIColor?{getset}
  • Color of the ad choices icon.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*adChoicesForegroundColor;
    Swift
    @NSCopyingvaradChoicesForegroundColor:UIColor?{getset}
  • Font of the title label.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIFont*titleFont;
    Swift
    @NSCopyingvartitleFont:UIFont?{getset}
  • Color of the description label.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*descriptionColor;
    Swift
    @NSCopyingvardescriptionColor:UIColor?{getset}
  • Font of the description label.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIFont*descriptionFont;
    Swift
    @NSCopyingvardescriptionFont:UIFont?{getset}
  • Background color of the call to action button.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*buttonColor;
    Swift
    @NSCopyingvarbuttonColor:UIColor?{getset}
  • Color of the call to action button’s title label.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*buttonTitleColor;
    Swift
    @NSCopyingvarbuttonTitleColor:UIColor?{getset}
  • Font of the call to action button’s title label.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIFont*buttonTitleFont;
    Swift
    @NSCopyingvarbuttonTitleFont:UIFont?{getset}
  • Border color of the call to action button. If nil, no border is shown.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)UIColor*buttonBorderColor;
    Swift
    @NSCopyingvarbuttonBorderColor:UIColor?{getset}
  • Deprecated
    This attribute is no longer used.
    Enables or disables autoplay for some types of media. Defaults to YES.

    Declaration

    Objective-C
    @property(nonatomic,assign,unsafe_unretained,readwrite,getter=isAutoplayEnabled)BOOLautoplayEnabled;
    Swift
    varisAutoplayEnabled:Bool{getset}

FBNativeAdView

FBNativeBannerAdView