iOS SDK Version
FBAdOptionsView
Deprecated
Use preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAd
Objective-C
@interfaceFBAdOptionsView:UIViewSwift
classFBAdOptionsView:UIViewDeprecated. 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.- DeprecatedUse preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAdThe native ad that provides AdOptions info, such as click url. Setting this updates the nativeAd.
Declaration
Objective-C@property(nonatomic,weak,nullable)FBNativeAdBase*nativeAd;SwiftweakvarnativeAd:FBNativeAdBase?{getset} - DeprecatedUse preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAdThe color to be used when drawing the AdOptions view.
Declaration
Objective-C@property(nonatomic,strong,nullable)UIColor*foregroundColor;SwiftvarforegroundColor:UIColor?{getset} - DeprecatedUse preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAdOnly 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;SwiftvaruseSingleIcon:Bool{getset} - DeprecatedUse preferredAdOptionsViewPosition on FBNativeAd / FBNativeBannerAdThe callback to be called when the ad is reported by user.
Declaration
Objective-C@property(nonatomic,copy,nullable)void(^)(void)adClosedCallback;SwiftvaradClosedCallback:(()->Void)?{getset}