iOS SDK Version
Classes
The following classes are available globally.
- UndocumentedSee more
Declaration
Objective-C@interfaceFBAdBridgeContainer:NSObject@property(nonatomic,assign)int32_tuniqueId;// Explicitly remove callbacks -(void)dispose;@end
SwiftclassFBAdBridgeContainer:NSObject
- UndocumentedSee 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
SwiftclassFBAdViewBridgeContainer:FBAdBridgeContainer,FBAdViewDelegate
- UndocumentedSee 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
SwiftclassFBInterstitialAdBridgeContainer:FBAdBridgeContainer,FBInterstitialAdDelegate
- UndocumentedSee 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
SwiftclassFBRewardedVideoAdBridgeContainer:FBAdBridgeContainer,FBRewardedVideoAdDelegate
- FBAdChoicesView offers a simple way to display a sponsored or AdChoices icon.See more
Declaration
Objective-C@interfaceFBAdChoicesView:UIView
SwiftclassFBAdChoicesView:UIView
- FBAdExperienceConfig is class designed to add some configuration to ad experienceSee more
Declaration
Objective-C@interfaceFBAdExperienceConfig:NSObject
SwiftclassFBAdExperienceConfig:NSObject
- UndocumentedSee 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
SwiftclassFBAdExtraHint:NSObject
- DeprecatedThis class will be removed in a future release. Use FBMediaView instead.UndocumentedSee more
- UndocumentedSee 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
SwiftclassFBAdOptionsView:UIView
- UndocumentedSee 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
SwiftclassFBAdSDKNotificationManager:NSObject
- AdSettings contains global settings for all ad controls.See more
Declaration
Objective-C@interfaceFBAdSettings:NSObject
SwiftclassFBAdSettings:NSObject
- FBAdInitSettings is an object to incapsulate all the settings you can pass to SDK on initialization call.See more
Declaration
Objective-C@interfaceFBAdInitSettings:NSObject
SwiftclassFBAdInitSettings: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
SwiftclassFBAdInitResults:NSObject
- UndocumentedSee 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;@end
SwiftclassFBAudienceNetworkAds:NSObject
- DeprecatedInstream ads have been deprecated.A customized UIView to display an instream video ad by Facebook.See more
Declaration
Objective-C@interfaceFBInstreamAdView:UIView
SwiftclassFBInstreamAdView:UIView
- 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
SwiftclassFBInterstitialAd: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
SwiftclassFBMediaView: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
SwiftclassFBMediaViewVideoRenderer: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
- The Internal representation of an AdSee more
Declaration
Objective-C@interfaceFBNativeAdBase:NSObject
SwiftclassFBNativeAdBase:NSObject
- The FBNativeAdBaseView creates prebuilt native ad base template views and manages native ads.See more
Declaration
Objective-C@interfaceFBNativeAdBaseView:UIView
SwiftclassFBNativeAdBaseView: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
SwiftclassFBNativeAdCollectionViewAdProvider: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
SwiftclassFBNativeAdCollectionViewCellProvider: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
SwiftclassFBNativeAdScrollView: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
SwiftclassFBNativeAdTableViewAdProvider: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>
SwiftclassFBNativeAdTableViewCellProvider:FBNativeAdTableViewAdProvider,UITableViewDataSource
- The FBNativeAdView creates prebuilt native ad template views and manages native ads.See more
Declaration
Objective-C@interfaceFBNativeAdView:FBNativeAdBaseView
SwiftclassFBNativeAdView:FBNativeAdBaseView
- Describes the look and feel of a native ad view.See more
Declaration
Objective-C@interfaceFBNativeAdViewAttributes:NSObject<NSCopying>
SwiftclassFBNativeAdViewAttributes: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
SwiftclassFBNativeAdsManager: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
SwiftclassFBNativeBannerAd:FBNativeAdBase
- The FBNativeBannerAdView creates prebuilt native banner ad template views and manages native banner ads.See more
Declaration
Objective-C@interfaceFBNativeBannerAdView:FBNativeAdBaseView
SwiftclassFBNativeBannerAdView: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
SwiftclassFBRewardedVideoAd:NSObject