FBAdView
@interfaceFBAdView:UIView
A customized UIView to represent a Facebook ad (a.k.a. banner ad).
@interfaceFBAdView:UIView
-(nonnullinstancetype)initWithPlacementID:(nonnullNSString*)placementIDadSize:(FBAdSize)adSizerootViewController:(nullableUIViewController*)rootViewController;
init(placementID:String,adSize:FBAdSize,rootViewController:UIViewController?)
-(nullableinstancetype)initWithPlacementID:(nonnullNSString*)placementIDbidPayload:(nonnullNSString*)bidPayloadrootViewController:(nullableUIViewController*)rootViewControllererror:(NSError*_Nullable*_Nullable)error;
convenienceinit(placementID:String,bidPayload:String,rootViewController:UIViewController?)throws
adViewDidLoad:
and adView:didFailWithError:
methods of FBAdViewDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAd;
funcloadAd()
adViewDidLoad:
and adView:didFailWithError:
methods of FBAdViewDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAdWithBidPayload:(nonnullNSString*)bidPayload;
funcloadAd(withBidPayloadbidPayload:String)
-(void)disableAutoRefresh;
funcdisableAutoRefresh()
@property(nonatomic,copy,readonly)NSString*_NonnullplacementID;
varplacementID:String{get}
@property(nonatomic,weak,readonly,nullable)UIViewController*rootViewController;
weakvarrootViewController:UIViewController?{get}
@property(nonatomic,readonly,getter=isAdValid)BOOLadValid;
varisAdValid:Bool{get}
@property(nonatomic,weak,readwrite,nullable)id<FBAdViewDelegate>delegate;
weakvardelegate:FBAdViewDelegate?{getset}
@property(nonatomic,strong,readwrite,nullable)FBAdExtraHint*extraHint;
varextraHint:FBAdExtraHint?{getset}