iOS SDK Version

Classes

The following classes are available globally.
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBAdBridgeContainer:NSObject@property(nonatomic,assign)int32_tuniqueId;// Explicitly remove callbacks -(void)dispose;@end
    Swift
    classFBAdBridgeContainer:NSObject
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBAdViewBridgeContainer:FBAdBridgeContainer<FBAdViewDelegate>@property(nonatomic,strong)FBAdView*adView;@property(nonatomic,assign)FBAdBridgeCallbackadViewDidClickCallback;@property(nonatomic,assign)FBAdBridgeCallbackadViewDidFinishHandlingClickCallback;@property(nonatomic,assign)FBAdBridgeCallbackadViewDidLoadCallback;@property(nonatomic,assign)FBAdBridgeErrorCallbackadViewDidFailWithErrorCallback;@property(nonatomic,assign)FBAdBridgeCallbackadViewWillLogImpressionCallback;-(instancetype)initNS_UNAVAILABLE;+(instancetype)newNS_UNAVAILABLE;-(instancetype)initWithAdView:(FBAdView*)adViewwithUniqueId:(int32_t)uniqueIdNS_DESIGNATED_INITIALIZER;@end
    Swift
    classFBAdViewBridgeContainer:FBAdBridgeContainer,FBAdViewDelegate
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBInterstitialAdBridgeContainer:FBAdBridgeContainer<FBInterstitialAdDelegate>@property(nonatomic,strong)FBInterstitialAd*interstitialAd;@property(nonatomic,assign)FBAdBridgeCallbackinterstitialAdDidClickCallback;@property(nonatomic,assign)FBAdBridgeCallbackinterstitialAdDidCloseCallback;@property(nonatomic,assign)FBAdBridgeCallbackinterstitialAdWillCloseCallback;@property(nonatomic,assign)FBAdBridgeCallbackinterstitialAdDidLoadCallback;@property(nonatomic,assign)FBAdBridgeErrorCallbackinterstitialAdDidFailWithErrorCallback;@property(nonatomic,assign)FBAdBridgeCallbackinterstitialAdWillLogImpressionCallback;-(instancetype)initNS_UNAVAILABLE;+(instancetype)newNS_UNAVAILABLE;-(instancetype)initWithInterstitialAd:(FBInterstitialAd*)interstitialAdwithUniqueId:(int32_t)uniqueIdNS_DESIGNATED_INITIALIZER;@end
    Swift
    classFBInterstitialAdBridgeContainer:FBAdBridgeContainer,FBInterstitialAdDelegate
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBRewardedVideoAdBridgeContainer:FBAdBridgeContainer<FBRewardedVideoAdDelegate>@property(nonatomic,strong)FBRewardedVideoAd*rewardedVideoAd;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdDidClickCallback;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdDidCloseCallback;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdWillCloseCallback;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdDidLoadCallback;@property(nonatomic,assign)FBAdBridgeErrorCallbackrewardedVideoAdDidFailWithErrorCallback;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdWillLogImpressionCallback;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdVideoCompleteCallback;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdServerRewardDidSucceedCallback;@property(nonatomic,assign)FBAdBridgeCallbackrewardedVideoAdServerRewardDidFailCallback;-(instancetype)initNS_UNAVAILABLE;+(instancetype)newNS_UNAVAILABLE;-(instancetype)initWithRewardedVideoAd:(FBRewardedVideoAd*)rewardedVideoAdwithUniqueId:(int32_t)uniqueIdNS_DESIGNATED_INITIALIZER;@end
    Swift
    classFBRewardedVideoAdBridgeContainer:FBAdBridgeContainer,FBRewardedVideoAdDelegate
  • FBAdChoicesView offers a simple way to display a sponsored or AdChoices icon.
    See more

    Declaration

    Objective-C
    @interfaceFBAdChoicesView:UIView
    Swift
    classFBAdChoicesView:UIView
  • FBAdExperienceConfig is class designed to add some configuration to ad experience
    See more

    Declaration

    Objective-C
    @interfaceFBAdExperienceConfig:NSObject
    Swift
    classFBAdExperienceConfig:NSObject
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBAdExtraHint:NSObject@property(nonatomic,copy,nullable)NSString*contentURLFB_DEPRECATED_WITH_MESSAGE("Extra hints are no longer used in Audience Network");@property(nonatomic,copy,nullable)NSString*extraDataFB_DEPRECATED_WITH_MESSAGE("Extra hints are no longer used in Audience Network");@property(nonatomic,copy,nullable)NSString*mediationDataFB_DEPRECATED_WITH_MESSAGE("Extra hints are no longer used in Audience Network");-(instancetype)initWithKeywords:(NSArray<FBAdExtraHintKeyword>*)keywordsFB_DEPRECATED_WITH_MESSAGE("Keywords are no longer used in Audience Network");-(void)addKeyword:(FBAdExtraHintKeyword)keywordFB_DEPRECATED_WITH_MESSAGE("Keywords are no longer used in Audience Network");-(void)removeKeyword:(FBAdExtraHintKeyword)keywordFB_DEPRECATED_WITH_MESSAGE("Keywords are no longer used in Audience Network");@end
    Swift
    classFBAdExtraHint:NSObject
  • Deprecated
    This class will be removed in a future release. Use FBMediaView instead.
    Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBAdIconView:FBMediaView
    Swift
    classFBAdIconView:FBMediaView
  • Represents an image creative.
    See more

    Declaration

    Objective-C
    @interfaceFBAdImage:NSObject
    Swift
    classFBAdImage:NSObject
  • Undocumented
    See more

    Declaration

    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
    See more

    Declaration

    Objective-C
    @interfaceFBAdSDKNotificationManager:NSObject/** Adds a listener to SDK events @param listener The listener to receive notification when the event happens Note that SDK will hold a weak reference to listener object */+(void)addFBAdSDKNotificationListener:(id<FBAdSDKNotificationListener>)listener;/** Adds a listener to SDK events @param listener The listener to be removed from notification list. You can call this method when you no longer want to receive SDK notifications. */+(void)removeFBAdSDKNotificationListener:(id<FBAdSDKNotificationListener>)listener;@end
    Swift
    classFBAdSDKNotificationManager:NSObject
  • AdSettings contains global settings for all ad controls.
    See more

    Declaration

    Objective-C
    @interfaceFBAdSettings:NSObject
    Swift
    classFBAdSettings:NSObject
  • A customized UIView to represent a Facebook ad (a.k.a. banner ad).
    See more

    Declaration

    Objective-C
    @interfaceFBAdView:UIView
    Swift
    classFBAdView:UIView
  • FBAdInitSettings is an object to incapsulate all the settings you can pass to SDK on initialization call.
    See more

    Declaration

    Objective-C
    @interfaceFBAdInitSettings:NSObject
    Swift
    classFBAdInitSettings:NSObject
  • FBAdInitResults is an object to incapsulate all the results you’ll get as a result of SDK initialization call.
    See more

    Declaration

    Objective-C
    @interfaceFBAdInitResults:NSObject
    Swift
    classFBAdInitResults:NSObject
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBAudienceNetworkAds:NSObject/** Initialize Audience Network SDK at any given point of time. It will be called automatically with default settigs when you first touch AN related code otherwise. @param settings The settings to initialize with @param completionHandler The block which will be called when initialization finished */+(void)initializeWithSettings:(nullableFBAdInitSettings*)settingscompletionHandler:(nullablevoid(^)(FBAdInitResults*results))completionHandler;+(void)handleDeeplink:(NSURL*)deeplink;@end
    Swift
    classFBAudienceNetworkAds:NSObject
  • A modal view controller to represent a Facebook interstitial ad. This is a full-screen ad shown in your application.
    See more

    Declaration

    Objective-C
    @interfaceFBInterstitialAd:NSObject
    Swift
    classFBInterstitialAd:NSObject
  • The FBMediaView loads media content from a given FBNativeAd. This view takes the place of manually loading a cover image.
    See more

    Declaration

    Objective-C
    @interfaceFBMediaView:UIView
    Swift
    classFBMediaView:UIView
  • The FBMediaViewVideoRenderer class allows for customization of the user experience for video ads in FBMediaView. This class should be subclassed, and an instance of that subclass should be passed to the videoRenderer property of an FBMediaView instance.
    See more

    Declaration

    Objective-C
    @interfaceFBMediaViewVideoRenderer:UIView
    Swift
    classFBMediaViewVideoRenderer:UIView
  • The FBNativeAd represents ad metadata to allow you to construct custom ad views. See the AdUnitsSample in the sample apps section of the Audience Network framework.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAd:FBNativeAdBase
    Swift
    classFBNativeAd:FBNativeAdBase
  • The Internal representation of an Ad
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdBase:NSObject
    Swift
    classFBNativeAdBase:NSObject
  • The FBNativeAdBaseView creates prebuilt native ad base template views and manages native ads.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdBaseView:UIView
    Swift
    classFBNativeAdBaseView:UIView
  • Additional functionality on top of FBNativeAdsManager to assist in using native ads within a UICollectionView. This class contains a mechanism to map indexPaths to native ads in a stable manner as well as helpers which assist in doing the math to include ads at a regular interval within a collection view.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdCollectionViewAdProvider:NSObject
    Swift
    classFBNativeAdCollectionViewAdProvider:NSObject
  • Class which assists in putting FBNativeAdViews into UICollectionViews. This class manages the creation of UICollectionViewCells which host native ad views. Functionality is provided to create UICollectionCellViews as needed for a given indexPath as well as computing the height of the cells.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdCollectionViewCellProvider:FBNativeAdCollectionViewAdProvider
    Swift
    classFBNativeAdCollectionViewCellProvider:FBNativeAdCollectionViewAdProvider
  • Contains multiple ads in a scroll view.
    If adding this view to a XIB or Storyboard, you may recieve the error “Unknown class FBNativeAdScrollView in Interface Builder file” in some cases. This error is caused by the linker failing to include FBNativeAdScrollView in your build. To resolve this, call [FBNativeAdScrollView class] in your project, or add “-all_load -ObjC” to “Other Linker Flags” in your project settings.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdScrollView:UIView
    Swift
    classFBNativeAdScrollView:UIView
  • Additional functionality on top of FBNativeAdsManager to assist in using native ads within a UITableView. This class contains a mechanism to map indexPaths to native ads in a stable manner as well as helpers which assist in doing the math to include ads at a regular interval within a table view.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdTableViewAdProvider:NSObject
    Swift
    classFBNativeAdTableViewAdProvider:NSObject
  • Class which assists in putting FBNativeAdViews into UITableViews. This class manages the creation of UITableViewCells which host native ad views. Functionality is provided to create UITableCellViews as needed for a given indexPath as well as computing the height of the cells.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdTableViewCellProvider:FBNativeAdTableViewAdProvider<UITableViewDataSource>
    Swift
    classFBNativeAdTableViewCellProvider:FBNativeAdTableViewAdProvider,UITableViewDataSource
  • The FBNativeAdView creates prebuilt native ad template views and manages native ads.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdView:FBNativeAdBaseView
    Swift
    classFBNativeAdView:FBNativeAdBaseView
  • Describes the look and feel of a native ad view.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdViewAttributes:NSObject<NSCopying>
    Swift
    classFBNativeAdViewAttributes:NSObject,NSCopying
  • This class provides a mechanism to fetch a set of ads and then use them within your application. The recommended usage is to call nextNativeAd: at the moment when you are about to render an ad. The native ads manager supports giving out as many ads as needed by cloning over the set of ads it got back from the server which can be useful for feed scenarios.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeAdsManager:NSObject
    Swift
    classFBNativeAdsManager:NSObject
  • The FBNativeBannerAd represents ad metadata to allow you to construct custom ad views. See the AdUnitsSample in the sample apps section of the Audience Network framework.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeBannerAd:FBNativeAdBase
    Swift
    classFBNativeBannerAd:FBNativeAdBase
  • The FBNativeBannerAdView creates prebuilt native banner ad template views and manages native banner ads.
    See more

    Declaration

    Objective-C
    @interfaceFBNativeBannerAdView:FBNativeAdBaseView
    Swift
    classFBNativeBannerAdView:FBNativeAdBaseView
  • A modal view controller to represent a Facebook rewarded video ad. This is a full-screen ad shown in your application.
    See more

    Declaration

    Objective-C
    @interfaceFBRewardedVideoAd:NSObject
    Swift
    classFBRewardedVideoAd:NSObject