Inherits from FBNativeAdTableViewAdProvider : NSObject
Declared in FBNativeAdTableViewCellProvider.h

Overview

@class FBNativeAdTableViewCellProvider

Instance Methods

initWithManager:forType:

Method to create a FBNativeAdTableViewCellProvider.

- (nonnull instancetype)initWithManager:(nonnull 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

FBNativeAdTableViewCellProvider.h

initWithManager:forType:forAttributes:

Method to create a FBNativeAdTableViewCellProvider.

- (nonnull instancetype)initWithManager:(nonnull FBNativeAdsManager *)manager forType:(FBNativeAdViewType)type forAttributes:(nonnull 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

FBNativeAdTableViewCellProvider.h

tableView:cellForRowAtIndexPath:

Helper method for implementors of UITableViewDataSource who would like to host native ad UITableViewCells in their table view.

- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath

Declared In

FBNativeAdTableViewCellProvider.h

tableView:estimatedHeightForRowAtIndexPath:

Helper method for implementors of UITableViewDelegate who would like to host native ad UITableViewCells in their table view.

- (CGFloat)tableView:(nonnull UITableView *)tableView estimatedHeightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath

Declared In

FBNativeAdTableViewCellProvider.h

tableView:heightForRowAtIndexPath:

Helper method for implementors of UITableViewDelegate who would like to host native ad UITableViewCells in their table view.

- (CGFloat)tableView:(nonnull UITableView *)tableView heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath

Declared In

FBNativeAdTableViewCellProvider.h