mergemilitary/Assets/Plugins/ToukaGames/ToponSDK/klevin/KlevinAdSDK.framework/Headers/KLNAdRequest.h

72 lines
1.9 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.

//
// KLNAdRequest.h
// KlevinAdSDK
//
// Copyright © 2021 Tencent. All rights reserved.
// Created by Klevin on 2021/4/20.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/// 请求对象基类,请勿直接使用
@interface KLNAdRequest : NSObject
/// 广告位ID
@property (nonatomic, copy, readonly) NSString *posId;
/// 请求ID
@property (nonatomic, copy, readonly) NSString *requestId;
- (instancetype)initWithPosId:(NSString *)posId;
@end
/// 开屏广告请求对象
@interface KLNSplashAdRequest : KLNAdRequest
/// 超时时长
@property (nonatomic) NSUInteger timeout;
@end
/// 插屏广告请求对象
@interface KLNInterstitialAdRequest : KLNAdRequest
@end
/// 激励视频请求对象
@interface KLNRewardedAdRequest : KLNAdRequest
/// 激励视频播放是否自动静音
/// @discussion 不设置默认NO非静音播放
@property (nonatomic) BOOL autoMute;
/// 触发的激励类型1复活2签到3道具4虚拟货币5其他
/// @discussion 不设置则默认为5
@property (nonatomic) NSUInteger rewardTrigger;
/// 激励卡秒时长
/// @discussion 默认为视频时长/赋值大于视频时长或者为非正数时SDK以视频时长为准
@property (nonatomic) NSUInteger rewardTime;
@end
/// 视频素材下载策略
typedef NS_ENUM(NSInteger, KLNVideoDownloadPolicy) {
KLNVideoDownloadPolicyAlways = 0, ///< 默认自动下载视频
KLNVideoDownloadPolicyWifiOnly, ///< 仅WIFI环境自动下载视频
};
/// 原生模版广告请求对象
@interface KLNUnifiedNativeAdRequest : KLNAdRequest
/// 一次请求自渲染广告个数推荐请求1-3个一次最多请求10个。
@property (nonatomic, assign) NSUInteger adCount;
/// 视频素材下载策略:控制视频素材下载时机
@property (nonatomic, assign) KLNVideoDownloadPolicy autoDownloadPolicy;
@end
NS_ASSUME_NONNULL_END