iOS SDK Version
FBAdViewDelegate
Objective-C
@protocolFBAdViewDelegate<NSObject>
Swift
protocolFBAdViewDelegate:NSObjectProtocol
The methods declared by the FBAdViewDelegate protocol allow the adopting delegate to respond to messages from the FBAdView class and thus respond to operations such as whether the ad has been loaded, the person has clicked the ad.
- When an ad is clicked, the modal view will be presented. And when the user finishes the interaction with the modal view and dismiss it, this message will be sent, returning control to the application.
Declaration
Objective-C-(void)adViewDidFinishHandlingClick:(nonnullFBAdView*)adView;
SwiftoptionalfuncadViewDidFinishHandlingClick(_adView:FBAdView)
Parameters
- Asks the delegate for a view controller to present modal content, such as the in-app browser that can appear when an ad is clicked.
Declaration
Objective-C@optional@property(nonatomic,strong,readonly)UIViewController*_NonnullviewControllerForPresentingModalView;
SwiftoptionalvarviewControllerForPresentingModalView:UIViewController{get}
Return Value
A view controller that is used to present modal content.