iOS SDK Version

FBAdOptionsView

Deprecated
Use preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAd
Objective-C
@interfaceFBAdOptionsView:UIView
Swift
classFBAdOptionsView:UIView
Deprecated. Use preferredAdOptionsViewPosition on FBNativeAd or FBNativeBannerAd to let the SDK place the AdOptions view for you, instead of creating and positioning this view manually.
This class remains functional for back-compat — if you have already added an FBAdOptionsView as a subview of the registered ad view, SDK-managed placement is skipped.
  • Deprecated
    Use preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAd
    The native ad that provides AdOptions info, such as click url. Setting this updates the nativeAd.

    Declaration

    Objective-C
    @property(nonatomic,weak,nullable)FBNativeAdBase*nativeAd;
    Swift
    weakvarnativeAd:FBNativeAdBase?{getset}
  • Deprecated
    Use preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAd
    The color to be used when drawing the AdOptions view.

    Declaration

    Objective-C
    @property(nonatomic,strong,nullable)UIColor*foregroundColor;
    Swift
    varforegroundColor:UIColor?{getset}
  • Deprecated
    Use preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAd
    Only show the ad choices triangle icon. Default is NO.
    Sizing note:
    • Single icon is rendered in a square frame, it will default to the smallest dimension.
    • Non single icon requires aspect ratio of the view to be 2.4 or less.

    Declaration

    Objective-C
    @property(nonatomic)BOOLuseSingleIcon;
    Swift
    varuseSingleIcon:Bool{getset}
  • Deprecated
    Use preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAd
    The callback to be called when the ad is reported by user.

    Declaration

    Objective-C
    @property(nonatomic,copy,nullable)void(^)(void)adClosedCallback;
    Swift
    varadClosedCallback:(()->Void)?{getset}