KMVerificationWindowController.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // KMVerificationWindowController.h
  3. // PDF Reader Pro Edition
  4. //
  5. // Created by 王帅 on 2018/5/8.
  6. //
  7. #import <Cocoa/Cocoa.h>
  8. typedef NS_ENUM(NSInteger, KMVerificationType) {
  9. KMVerificationTypeNormal,
  10. KMVerificationTypeActivate,
  11. KMVerificationTypeTrial,
  12. KMVerificationTypeActivateExpired,
  13. KMVerificationTypeTrialExpired,
  14. KMVerificationTypeTrialSuccess,//试用成功提示界面
  15. KMVerificationTypeInfo,
  16. KMVerificationTypeRepeatTrialSuccess,//二次试用成功
  17. KMVerificationTypeRepeatTrialGuide,//二次试用引导界面
  18. KMVerificationTypeRepeatTrialExpire,//二次试用到期提示
  19. KMVerificationTypeActivateAIInfo,//激活AI功能
  20. };
  21. @interface KMVerificationWindowController : NSWindowController
  22. @property (nonatomic, copy) void (^callback) (void);
  23. + (void)launching;
  24. + (KMVerificationWindowController *)verificationWithType:(KMVerificationType)type;
  25. + (BOOL)allowsShowExpired;//第一次过期弹窗显示判断
  26. + (void)showExpiredInfo;//第一次过期弹窗提示
  27. + (BOOL)allowRepeatTrialAlertShow;//是否在开启APP时弹出二次试用弹窗提示框
  28. + (BOOL)allowRepeatTrialExpireShow;//是否允许弹出二次试用过期弹窗
  29. + (void)verificationFeedback;
  30. @end