-
Notifications
You must be signed in to change notification settings - Fork 0
/
SJCVersion.h
40 lines (27 loc) · 1002 Bytes
/
SJCVersion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// SJCVersion.h
// 版本更新
//
// Created by 时光与你 on 2019/8/20.
// Copyright © 2019 Yehwang. All rights reserved.
//
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT NSString * const SJCVersionDidShowNotification;
FOUNDATION_EXPORT NSString * const SJCVersionDidLaunchAppStoreNotification;
FOUNDATION_EXPORT NSString * const SJCVersionDidSkipVersionNotification;
FOUNDATION_EXPORT NSString * const SJCVersionDidCancelNotification;
FOUNDATION_EXPORT NSString * const SJCVersionDidDetectNewVersionWithoutAlertNotification;
typedef NS_ENUM(NSUInteger, SJCVersionAlertType){
SJCVersionAlertTypeForce = 1,
SJCVersionAlertTypeOption,
SJCVersionAlertTypeSkip,
SJCVersionAlertTypeNone
};
@interface SJCVersion : NSObject
@property (nonatomic, copy, readonly) NSString *currentAppStoreVersion;
@property (nonatomic, assign) SJCVersionAlertType alertType;
+ (SJCVersion *)sharedInstance;
- (void)checkVersion;
- (void)checkVersionDaily;
- (void)checkVersionWeekly;
@end