SecurityDevice.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // deviceiOS.h
  3. // deviceiOS
  4. //
  5. // Created by nansong.zxc on 2020/3/25.
  6. // Copyright © 2020 security.net. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "SecuritySession.h"
  10. //! Project version number for deviceiOS.
  11. FOUNDATION_EXPORT double deviceiOSVersionNumber;
  12. //! Project version string for deviceiOS.
  13. FOUNDATION_EXPORT const unsigned char deviceiOSVersionString[];
  14. // In this header, you should import all the public headers of your framework using statements like #import <deviceiOS/PublicHeader.h>
  15. @interface SecurityDevice : NSObject
  16. /**
  17. * 设备指纹单例
  18. */
  19. + (SecurityDevice *)sharedInstance;
  20. /**
  21. * 设备指纹初始化函数
  22. */
  23. - (void)initDevice:(NSString *)userAppKey :(void (^)(int))initCallback;
  24. /**
  25. * 底层数据传输走IPv6
  26. */
  27. - (void)initDeviceIPV6:(NSString *)userAppKey :(void (^)(int))initCallback;
  28. /**
  29. * 获取DeviceToken
  30. */
  31. - (SecuritySession *) getSession;
  32. /**
  33. * 用户自定义上报数据
  34. */
  35. - (void)reportUserData:(int)type :(NSString *)msg;
  36. /**
  37. * 在某些特殊时机上报,具体上报时机请联系 对接人员咨询
  38. */
  39. - (void)reportMoment;
  40. /**
  41. * 读取本次
  42. */
  43. - (SecuritySessionId *)getSessionId;
  44. /**
  45. * 设置自定义选项
  46. */
  47. - (void)setOptions:(NSDictionary *)options;
  48. @end