FBNativeAdView
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

The FBNativeAdView creates prebuilt native ad template views and manages native ads.

Superclass:UIView
Declared in:FBNativeAdView.h
ทรัพย์สิน
type

The type of the view, specifies which template to use

@property (nonatomic, assign, readonly) FBNativeAdViewType type;
ให้คำรับรองไว้ใน: FBNativeAdView.h
viewController

A view controller that is used to present modal content. If nil, the view searches for a view controller.

@property (nonatomic, weak, nullable) UIViewController *viewController;
ให้คำรับรองไว้ใน: FBNativeAdView.h
วิธีการคลาส
nativeAdViewWithNativeAd:withType:

This is a method to create a native ad template using the given placement id and type.

พารามิเตอร์คำอธิบาย
nativeAd

The native ad to use to create this view.

type

The type of this native ad template. For more information, consult FBNativeAdViewType.

+ (nonnull instancetype)
nativeAdViewWithNativeAd: (nonnull FBNativeAd *)nativeAd
withType: (FBNativeAdViewType)type;
ให้คำรับรองไว้ใน: FBNativeAdView.h
nativeAdViewWithNativeAd:withType:withAttributes:

This is a method to create a native ad template using the given placement id and type.

พารามิเตอร์คำอธิบาย
nativeAd

The native ad to use to create this view.

type

The type of this native ad template. For more information, consult FBNativeAdViewType.

attributes

The attributes to render this native ad template with.

+ (nonnull instancetype)
nativeAdViewWithNativeAd: (nonnull FBNativeAd *)nativeAd
withType: (FBNativeAdViewType)type
withAttributes: (nonnull FBNativeAdViewAttributes *)attributes;
ให้คำรับรองไว้ใน: FBNativeAdView.h