iOS SDK Version
FBAdOptionsView
Objective-C
@interfaceFBAdOptionsView:UIView/** The native ad that provides AdChoices 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 AdChoices 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;@end
Swift
classFBAdOptionsView:UIView
Undocumented
- The native ad that provides AdChoices 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 AdChoices 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}