FBRewardedVideoAd
@interfaceFBRewardedVideoAd:NSObject
A modal view controller to represent a Facebook rewarded video ad. This is a full-screen ad shown in your application.
@interfaceFBRewardedVideoAd:NSObject
@property(nonatomic,copy,readonly)NSString*_NonnullplacementID;
varplacementID:String{get}
@property(nonatomic,assign,unsafe_unretained,readonly)CMTimeduration;
varduration:CMTime{get}
@property(nonatomic,weak,readwrite,nullable)id<FBRewardedVideoAdDelegate>delegate;
weakvardelegate:FBRewardedVideoAdDelegate?{getset}
isAdValid
before trying to show the ad.@property(nonatomic,readonly,getter=isAdValid)BOOLadValid;
varisAdValid:Bool{get}
@property(nonatomic,strong,readwrite,nullable)FBAdExtraHint*extraHint;
varextraHint:FBAdExtraHint?{getset}
@property(nonatomic,copy,readwrite,nullable)FBAdExperienceConfig*adExperienceConfig;
@NSCopyingvaradExperienceConfig:FBAdExperienceConfig?{getset}
-(nonnullinstancetype)initWithPlacementID:(nonnullNSString*)placementID;
init(placementID:String)
-(nonnullinstancetype)initWithPlacementID:(nonnullNSString*)placementIDwithUserID:(nullableNSString*)userIDwithCurrency:(nullableNSString*)currency;
init(placementID:String,withUserIDuserID:String?,withCurrencycurrency:String?)
rewardedVideoAdDidLoad:
and rewardedVideoAd:didFailWithError:
methods of FBRewardedVideoAdDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAd;
funcload()
rewardedVideoAdDidLoad:
and rewardedVideoAd:didFailWithError:
methods of FBRewardedVideoAdDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAdWithBidPayload:(nonnullNSString*)bidPayload;
funcload(withBidPayloadbidPayload:String)
-(BOOL)setRewardDataWithUserID:(nonnullNSString*)userIDwithCurrency:(nonnullNSString*)currency;
funcsetRewardDataWithUserID(_userID:String,withCurrencycurrency:String)->Bool
rewardedVideoAdDidClick:
and rewardedVideoAdWillClose:
methods of FBRewardedVideoAdDelegate
if you would like to stay informed for those events.-(BOOL)showAdFromRootViewController:(nonnullUIViewController*)rootViewController;
funcshow(fromRootViewControllerrootViewController:Any!)->Bool
rewardedVideoAdDidClick:
and rewardedVideoAdWillClose:
methods of FBRewardedVideoAdDelegate
if you would like to stay informed for those events.-(BOOL)showAdFromRootViewController:(nonnullUIViewController*)rootViewControlleranimated:(BOOL)flag;
funcshow(fromRootViewControllerrootViewController:Any!,animatedflag:Bool)->Bool