ISecurityGuardOpenLBSRisk.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //
  2. // ISecurityGuardOpenLBSRisk.h
  3. // SecurityGuardSecurityBody
  4. //
  5. // Created by chenkong.zh on 2019/03/14.
  6. // Copyright © 2018 Li Fengzhong. All rights reserved.
  7. //
  8. #ifndef ISecurityGuardOpenLBSRisk_h
  9. #define ISecurityGuardOpenLBSRisk_h
  10. #import <Foundation/Foundation.h>
  11. #import <CoreLocation/CoreLocation.h>
  12. #if TARGET_OS_WATCH
  13. #import <SecurityGuardSDKWatch/SecurityBody/ISecurityBodyComponent.h>
  14. #import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
  15. #else
  16. #import <SecurityGuardSDK/Open/OpenSecurityBody/IOpenSecurityBodyComponent.h>
  17. #import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
  18. #endif
  19. @protocol ISecurityGuardOpenLBSRisk <NSObject, IOpenSecurityGuardPluginInterface>
  20. // 已废弃
  21. /**
  22. * 初始化LBS风控模块的Manager, 创建LVM实例
  23. *
  24. * @param dict 所有参数都放到字典里面,避免后续如果有参数扩展需要改接口的情况出现,字典可以持续扩展参数
  25. * "authCode" : (NSString*) [required] 保镖为业务方分配的标识id,与bianry一一对应
  26. * "binary" : (NSdata*) [optional] 存储待执行的bianry code的二进制
  27. * "maxLocationCnt" : (NSNumber*) [optional] 最大支持上传的Location数量可自定义的有效区间为[3, 20],缺省值=3
  28. * "reset" : (NSNumber*) [optional] 重新初始化,此时binary为非空,加载新的binary code
  29. * @param error 错误
  30. *
  31. * @return YES succees, NO failure
  32. */
  33. - (BOOL) initLbsManager: (NSDictionary*)dict
  34. error: (NSError* __autoreleasing*)error;
  35. // 已废弃
  36. /**
  37. * 存储应用获取的Location信息。
  38. *
  39. * @param locations 位置信息,GCJ02 坐标系
  40. * @param error 错误码
  41. * @return YES succees, NO failure
  42. */
  43. - (BOOL) putLocationData: (CLLocation*) locations
  44. error: (NSError* __autoreleasing*)error;
  45. // 已废弃
  46. /**
  47. * 获取位置风险信息。
  48. *
  49. * @param env 线上0,预发1,日常0
  50. * @param error 错误码
  51. * @return 获取位置信息+风控数据
  52. */
  53. - (NSString *) getLocationData:(int)env
  54. error:(NSError* __autoreleasing*)error;
  55. // 已废弃
  56. /**
  57. * 重置 Location 信息。
  58. *
  59. * @return YES succees, NO failure
  60. */
  61. - (BOOL) clearLocationData: (NSError* __autoreleasing*)error;
  62. @end
  63. #endif /* ISecurityGuardOpenLBSRisk_h */