Files
2026-03-27 09:40:51 +08:00

45 lines
1.4 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.
//
// DTFSdk.h
// DTFIdentityManager
//
// Created by richard on 22/11/2017.
// Copyright © 2017 DTF. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DTFSdk : NSObject
/*初始化接口,尽可能早调用
*/
+ (void)init;
/* IPV6的初始化接口 只有你的网络环境强制要求是IPV6的时候,才调用initIPv6。
*/
+ (void)initIPv6;
+ (NSString *)getVersion;
+ (void)preload:(NSDictionary *)param completion:(void (^)(BOOL success))completion;
/*同步获取设备指纹token
1)SDK初始化后需要经过一段时间计算才能获取到deviceToken,建议间隔3秒以上;
2)deviceToken短期有效,不能长期缓存使用,不能作为设备唯一标识。
*@param session 要获取的session缓冲区
*@param lenth session缓冲区的长度,此值应不小于384 比如:char session[384] = {0};
*@return 0表示成功,其他表示失败
*/
+(int) getSession:(char *) session : (const int) lenth DEPRECATED_MSG_ATTRIBUTE("use getMobileSession instead");
/*同步获取设备指纹token
1)SDK初始化后需要经过一段时间计算才能获取到deviceToken,建议间隔3秒以上;
2)如果没有获取到token,返回的内容是@"",没有内容的字符串。
*/
+(NSString*)getMobileSession:(NSString *)certifyID;
//获取无线保镖基本数据。
+ (NSDictionary*) getSecurityInfo DEPRECATED_MSG_ATTRIBUTE("won't use any more");;
@end