iOS

deepkonw 说明

deepkonw 为极验业务安全服务的基础感知构件,主要用于采集客户端的相关安全信息,为后续服务提供数据,是其他极验服务的基础,

如果只需求无感知判断的用户部署此SDK即可。

如果需求行为验证服务,部署完成此SDK后,还需部署验证UI相关构件,请参考行为验证部署文档

Protocol

DeepKnowDelegate

DeepKnow网络行为的相关操作

deepknowWillFlush:

控制请求是否发送的行为

Declaration

- (BOOL)deepknowWillFlush:(DeepKnow *)deepknow;

Parameters

Param Description
deepknow DeepKnow实例

Return Value

是否发送当前的请求, 默认为YES。

DeepKnow

DeepKnow的外部调用接口及属性

Category

UIViewController(DeepKnow)

dpEventAlias

@property (nonatomic, strong) NSString *dpEventAlias;

Property

delegate

DeepKnow生命周期代理

Declaration

@property (nonatomic, weak) id<DeepKnowDelegate> delegate;

flushInterval

发送间隔, 默认60秒

Declaration

@property (atomic) NSUInteger flushInterval;

flushOnBackground;

是否允许应用进入后台时发送数据, 默认YES

Declaration

@property (atomic) BOOL flushOnBackground;

shouldManageNetworkActivityIndicator;

是否发送显示状态栏上的网络指示器, 默认YES

Declaration

@property (atomic) BOOL shouldManageNetworkActivityIndicator;

Method

sdkVersion

获取sdk版本号

Declaration

+ (NSString *)sdkVersion;

Return

sdk版本号

sharedInstance;

返回DeepKnow单例

Declaration

+ (nullable DeepKnow *)sharedInstance;

Return

DeepKnow的实例

start

启动DeepKnow

Declaration

- (void)start;

stop

停止DeepKnow

Declaration

- (void)stop;

emitRecentSenseDataWithGTID:interactive: attribution:completionHandler:

提交最近的行为副本, 并拉取分析结果

Declaration

- (void)emitRecentSenseDataWithGTID:(nonnull NSString *)gtID interactive:(NSUInteger)interactive attribution:(nonnull NSDictionary *)attr completionHandler:(nonnull void(^)( NSDictionary * _Nullable dict, NSError * _Nullable error))completion;

Parameters

Param Description
gtID 场景id(gt_id)
interactive 当前场景类型详见: 1 注册, 2 登录, 3 短信接口, 4 领券\抽奖, 5 下单, 6 发帖评论, 0 其他
attr 额外的场景属性