悟空记账

JZTouchIDTool.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // JZTouchIDTool.h
  3. // JIZHANG
  4. //
  5. // Created by xiaoxi on 2017/12/20.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface JZTouchIDTool : NSObject
  10. + (void)setNeedTouchIDYes;
  11. + (void)setNeedTouchIDNo;
  12. + (BOOL)needTouchID;
  13. + (void)openTouchID;
  14. + (void)closeTouchID;
  15. + (BOOL)isOpenTouchID;
  16. + (BOOL)supportTouchID;
  17. + (BOOL)canTouchID;
  18. + (void)validateTouchID;
  19. @end
  20. /*
  21. * 验证成功
  22. */
  23. UIKIT_EXTERN NSString *const JZValidateTouchIDSuccess;
  24. /*
  25. * 验证失败
  26. */
  27. UIKIT_EXTERN NSString *const JZValidateTouchIDFailure;
  28. /*
  29. * 取消验证
  30. */
  31. UIKIT_EXTERN NSString *const JZValidateTouchIDCancel;
  32. /*
  33. * 输入密码
  34. */
  35. UIKIT_EXTERN NSString *const JZValidateTouchIDUserFallback;
  36. /*
  37. * 设备未设置密码
  38. */
  39. UIKIT_EXTERN NSString *const JZValidateTouchIDPasscodeNotSet;
  40. /*
  41. * 设备指纹不可用
  42. */
  43. UIKIT_EXTERN NSString *const JZValidateTouchIDNotAvailable;
  44. /*
  45. * 设备未设置指纹
  46. */
  47. UIKIT_EXTERN NSString *const JZValidateTouchIDNotEnrolled;
  48. /*
  49. * 设备指纹被锁定
  50. */
  51. UIKIT_EXTERN NSString *const JZValidateTouchIDLockout;
  52. /*
  53. * 验证指纹被禁止
  54. */
  55. UIKIT_EXTERN NSString *const JZValidateTouchIDInvalidContext;