KMVerificationWindowController.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. KMVerificationTypeUnbindAlert,
  21. };
  22. @interface KMVerificationWindowController : NSWindowController
  23. @property (nonatomic, copy) void (^callback) (void);
  24. + (void)launching;
  25. + (KMVerificationWindowController *)verificationWithType:(KMVerificationType)type;
  26. + (BOOL)allowsShowExpired;//第一次过期弹窗显示判断
  27. + (void)showExpiredInfo;//第一次过期弹窗提示
  28. + (BOOL)allowRepeatTrialAlertShow;//是否在开启APP时弹出二次试用弹窗提示框
  29. + (BOOL)allowRepeatTrialExpireShow;//是否允许弹出二次试用过期弹窗
  30. + (void)verificationFeedback;
  31. @end