FBMediaView
Versi yang lebih baru dari kelas ini sudah tersedia. Lihat versi terbaru.

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

Superclass:UIView
Declared in:FBMediaView.h
Properti
autoplayEnabled

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

@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled;
Dinyatakan dalam: FBMediaView.h
delegate

The delegate

@property (nonatomic, weak, nullable) id<FBMediaViewDelegate> delegate;
Dinyatakan dalam: FBMediaView.h
nativeAd

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

@property (nonatomic, strong, nonnull) FBNativeAd *nativeAd;
Dinyatakan dalam: FBMediaView.h
Metode Instans
initWithNativeAd:

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

ParameterKeterangan
nativeAd

The native ad to load media content from.

- (instancetype) initWithNativeAd:(FBNativeAd *)nativeAd;
Dinyatakan dalam: FBMediaView.h