FBAdViewDelegate Protocol Reference
Conforms to | NSObject |
Declared in | FBAdView.h |
Overview
@protocol
@abstract 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.
Instance Methods
adView:didFailWithError:
@method
- (void)adView:(FBAdView *)adView didFailWithError:(NSError *)error
Parameters
- adView
An FBAdView object sending the message.
- error
An error object containing details of the error.
Discussion
@abstract Sent after an FBAdView fails to load the ad.
Declared In
FBAdView.h
adViewDidClick:
@method
- (void)adViewDidClick:(FBAdView *)adView
Parameters
- adView
An FBAdView object sending the message.
Discussion
@abstract Sent after an ad has been clicked by the person.
Declared In
FBAdView.h
adViewDidFinishHandlingClick:
@method
- (void)adViewDidFinishHandlingClick:(FBAdView *)adView
Parameters
- adView
An FBAdView object sending the message.
Discussion
@abstract 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.
Declared In
FBAdView.h
adViewDidLoad:
@method
- (void)adViewDidLoad:(FBAdView *)adView
Parameters
- adView
An FBAdView object sending the message.
Discussion
@abstract Sent when an ad has been successfully loaded.
Declared In
FBAdView.h
adViewWillLogImpression:
@method
- (void)adViewWillLogImpression:(FBAdView *)adView
Parameters
- adView
An FBAdView object sending the message.
Discussion
@abstract Sent immediately before the impression of an FBAdView object will be logged.
Declared In
FBAdView.h
viewControllerForPresentingModalView
@method
- (UIViewController *)viewControllerForPresentingModalView
Return Value
A view controller that is used to present modal content.
Discussion
@abstract 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.
Declared In
FBAdView.h