Inherits from UIView
Declared in FBMediaView.h

Overview

@class FBNativeAd

@abstract The FBMediaView loads media content from a given FBNativeAd. This view takes the place of manually loading a cover image.

Properties

autoplayEnabled

Enables or disables autoplay for some types of media. Defaults to YES.

@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled

Declared In

FBMediaView.h

delegate

the delegate

@property (nonatomic, weak, nullable) id<FBMediaViewDelegate> delegate

Declared In

FBMediaView.h

nativeAd

the native ad, can be set again to reuse this view.

@property (nonatomic, strong, nonnull) FBNativeAd *nativeAd

Declared In

FBMediaView.h

Instance Methods

initWithNativeAd:

@method @abstract This is a method to create a media view using the given native ad.

- (instancetype)initWithNativeAd:(FBNativeAd *)nativeAd

Parameters

nativeAd

The native ad to load media content from.

Declared In

FBMediaView.h