FBNativeAdCollectionViewCellProvider Class Reference
Inherits from | FBNativeAdCollectionViewAdProvider : NSObject |
Declared in | FBNativeAdCollectionViewCellProvider.h |
Instance Methods
collectionView:cellForItemAtIndexPath:
Helper method for implementors of UICollectionViewDataSource who would like to host native ad UICollectionViewCells in their collection view.
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
Declared In
FBNativeAdCollectionViewCellProvider.h
collectionView:heightForRowAtIndexPath:
Helper method for implementors of UICollectionViewDelegate who would like to host native ad UICollectionViewCells in their collection view.
- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath
Declared In
FBNativeAdCollectionViewCellProvider.h
initWithManager:forType:
Method to create a FBNativeAdCollectionViewCellProvider.
- (instancetype)initWithManager:(FBNativeAdsManager *)manager forType:(FBNativeAdViewType)type
Parameters
- manager
The naitve ad manager consumed by this provider
- type
The type of this native ad template. For more information, consult FBNativeAdViewType.
Declared In
FBNativeAdCollectionViewCellProvider.h
initWithManager:forType:forAttributes:
Method to create a FBNativeAdCollectionViewCellProvider.
- (instancetype)initWithManager:(FBNativeAdsManager *)manager forType:(FBNativeAdViewType)type forAttributes:(FBNativeAdViewAttributes *)attributes
Parameters
- manager
The naitve ad manager consumed by this provider
- type
The type of this native ad template. For more information, consult FBNativeAdViewType.
- attributes
The layout of this native ad template. For more information, consult FBNativeAdViewLayout.
Declared In
FBNativeAdCollectionViewCellProvider.h