2024-06-07 11:41:02 +08:00

85 lines
1.8 KiB
Objective-C
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.

//
// BaiduMobAdWebSDK
//
//
//
#import <UIKit/UIKit.h>
#import "BaiduMobAdCommonConfig.h"
@interface BaiduMobAdSetting : NSObject
@property (nonatomic, assign) BOOL supportHttps;
@property (nonatomic, assign) BOOL trackCrash;
+ (BaiduMobAdSetting *)sharedInstance;
/**
* 设置Landpage页面导航栏颜色
*/
+ (void)setLpStyle:(BaiduMobAdLpStyle)style;
/**
* 设置视频缓存阀值单位M, 取值范围15M-100M,默认30M
*/
+ (void)setMaxVideoCacheCapacityMb:(NSInteger)capacity;
/**
关闭百度SDK 打印日志开关
@param debugLogEnable YES开启 默认YES
*/
- (void)setDebugLogEnable:(BOOL)debugLogEnable;
/**
打开或关闭百度CAID的开关
@param enable YES开启 默认YES
*/
- (void)setBDPermissionEnable:(BOOL)enable BaiduMobAdDEPRECATED_MSG("已废弃,需要调整功能请联系商务/运营同学");
/**
* 获取CAID开关状态默认开启。
*/
- (BOOL)getBDPermission BaiduMobAdDEPRECATED_MSG("已废弃,需要调整功能请联系商务/运营同学");
/**
* 限制个性化广告
* @param limit YES限制默认NO
*/
- (void)setLimitBaiduPersonalAds:(BOOL)limit;
/**
* 获取个性化广告限制状态,默认不限制
*/
- (BOOL)getLimitBaiduPersonalAds;
/**
* 限制个性化CPU
* @param limit YES限制默认NO
*/
- (void)setLimitBaiduPersonalCPUs:(BOOL)limit;
/**
* 获取个性化CPU限制状态默认不限制
*/
- (BOOL)getLimitBaiduPersonalCPUs;
/**
* 是否关闭摇一摇广告功能。注意全产品生效需媒体APP启动时进行set
* @param closeShake YES为关闭默认不关闭
*/
- (void)setCloseShakeAds:(BOOL)closeShake;
/**
* 设置微信openSDK的appid和universalLink
*/
- (void)setWXAppId:(NSString *)appid universalLink:(NSString *)universalLink;
/**
* 获取SDK Version
*/
- (NSString *)getSDKVersion;
@end