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