iOS SDK Version

Protocols

The following protocols are available globally.
  • Undocumented
    See more

    Declaration

    Objective-C
    @protocolFBAdSDKNotificationListener<NSObject>/** Method to be called when some specific SDK event will happens @param event event type. Currently suuported following events: "impression" happens every time when AD got an inpression recorded on the SDK @param eventData is a payload associated with the event. Method would be called on the main queue when the SDK event happens. */-(void)onFBAdEvent:(NSString*)eventeventData:(NSDictionary<NSString*,NSString*>*)eventData;@end
    Swift
    protocolFBAdSDKNotificationListener:NSObjectProtocol
  • Undocumented
    See more

    Declaration

    Objective-C
    @protocolFBAdLoggingDelegate<NSObject>-(void)logAtLevel:(FBAdLogLevel)levelwithFileName:(NSString*)fileNamewithLineNumber:(int)lineNumberwithThreadId:(long)threadIdwithBody:(NSString*)body;@end
    Swift
    protocolFBAdLoggingDelegate: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.
    See more

    Declaration

    Objective-C
    @protocolFBAdViewDelegate<NSObject>
    Swift
    protocolFBAdViewDelegate:NSObjectProtocol
  • The FBInstreamAdViewDelegate protocol defines methods that allow the owner of an FBInstreamAdView to respond to various stages of ad operation.
    See more

    Declaration

    Objective-C
    @protocolFBInstreamAdViewDelegate<NSObject>
    Swift
    protocolFBInstreamAdViewDelegate:NSObjectProtocol
  • The methods declared by the FBInterstitialAdDelegate protocol allow the adopting delegate to respond to messages from the FBInterstitialAd class and thus respond to operations such as whether the interstitial ad has been loaded, user has clicked or closed the interstitial.
    See more

    Declaration

    Objective-C
    @protocolFBInterstitialAdDelegate<NSObject>
    Swift
    protocolFBInterstitialAdDelegate:NSObjectProtocol
  • The methods declared by the FBMediaViewDelegate protocol allow the adopting delegate to respond to messages from the FBMediaView class and thus respond to operations such as whether the media content has been loaded.
    See more

    Declaration

    Objective-C
    @protocolFBMediaViewDelegate<NSObject>
    Swift
    protocolFBMediaViewDelegate:NSObjectProtocol
  • The methods declared by the FBNativeAdDelegate protocol allow the adopting delegate to respond to messages from the FBNativeAd class and thus respond to operations such as whether the native ad has been loaded.
    See more

    Declaration

    Objective-C
    @protocolFBNativeAdDelegate<NSObject>
    Swift
    protocolFBNativeAdDelegate:NSObjectProtocol
  • @protocol FBNativeAdsManagerDelegate
    Messages from FBNativeAdsManager indicating success or failure loading ads.
    See more

    Declaration

    Objective-C
    @protocolFBNativeAdsManagerDelegate<NSObject>
    Swift
    protocolFBNativeAdsManagerDelegate:NSObjectProtocol
  • The methods declared by the FBNativeBannerAdDelegate protocol allow the adopting delegate to respond to messages from the FBNativeBannerAd class and thus respond to operations such as whether the native banner ad has been loaded.
    See more

    Declaration

    Objective-C
    @protocolFBNativeBannerAdDelegate<NSObject>
    Swift
    protocolFBNativeBannerAdDelegate:NSObjectProtocol
  • The methods declared by the FBRewardedVideoAdDelegate protocol allow the adopting delegate to respond to messages from the FBRewardedVideoAd class and thus respond to operations such as whether the ad has been loaded, the person has clicked the ad or closed video/end card.
    See more

    Declaration

    Objective-C
    @protocolFBRewardedVideoAdDelegate<NSObject>
    Swift
    protocolFBRewardedVideoAdDelegate:NSObjectProtocol