mergemilitary/Assets/Plugins/ToukaGames/ToponSDK/baidu/BaiduMobAdSDK.framework/Headers/BaiduMobAdRewardVideoDelega...

85 lines
2.1 KiB
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// BaiduMobAdRewardVideoDelegate.h
// BaiduMobAdSDK
//
// Created by Yang,Dingjia on 2018/7/3.
// Copyright © 2018年 Baidu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BaiduMobAdCommonConfig.h"
@class BaiduMobAdRewardVideo;
@protocol BaiduMobAdRewardVideoDelegate <NSObject>
@optional
#pragma mark - 广告请求delegate
/**
* 激励视频广告请求成功
*/
- (void)rewardedAdLoadSuccess:(BaiduMobAdRewardVideo *)video;
/**
* 激励视频广告请求失败
*/
- (void)rewardedAdLoadFail:(BaiduMobAdRewardVideo *)video;
#pragma mark - 视频缓存delegate
/**
* 视频缓存成功
*/
- (void)rewardedVideoAdLoaded:(BaiduMobAdRewardVideo *)video;
/**
* 视频缓存失败
*/
- (void)rewardedVideoAdLoadFailed:(BaiduMobAdRewardVideo *)video withError:(BaiduMobFailReason)reason;
#pragma mark - 视频播放delegate
/**
* 视频开始播放
*/
- (void)rewardedVideoAdDidStarted:(BaiduMobAdRewardVideo *)video;
/**
* 广告展示失败
*/
- (void)rewardedVideoAdShowFailed:(BaiduMobAdRewardVideo *)video withError:(BaiduMobFailReason)reason;
/**
* 广告完成播放
*/
- (void)rewardedVideoAdDidPlayFinish:(BaiduMobAdRewardVideo *)video;
/**
* 成功激励回调
* 低于30s的视频播放达到90%即会回调
* 高于30s的视频播放达到27s即会回调
* @param verify 激励验证YES为成功
*/
- (void)rewardedVideoAdRewardDidSuccess:(BaiduMobAdRewardVideo *)video verify:(BOOL)verify;
/**
* 用户点击视频跳过按钮,进入尾帧
@param progress 当前播放进度 单位百分比 (注意浮点数)
*/
- (void)rewardedVideoAdDidSkip:(BaiduMobAdRewardVideo *)video withPlayingProgress:(CGFloat)progress;
/**
* 视频正常播放完毕,或者视频跳过后,尾帧关闭
@param progress 当前播放进度 单位百分比 (注意浮点数)
*/
- (void)rewardedVideoAdDidClose:(BaiduMobAdRewardVideo *)video withPlayingProgress:(CGFloat)progress;
/**
* 用户点击下载/查看详情
@param progress 当前播放进度 单位百分比
*/
- (void)rewardedVideoAdDidClick:(BaiduMobAdRewardVideo *)video withPlayingProgress:(CGFloat)progress;
@end