PgyUpdateManager.h
1.38 KB
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
40
41
42
43
44
45
46
//
// PgyUpdateManager.h
// Pods
//
// Created by Scott Lei on 15/9/16.
//
//
#import <Foundation/Foundation.h>
@interface PgyUpdateManager : NSObject
+ (PgyUpdateManager *)sharedPgyManager;
/**
* Start update manager.
* @param appId App ID,you will find it in the website.
*/
- (void)startManagerWithAppId:(NSString *)appId;
/**
* Check is there new version that developer uploaded.
* If a new version has been uploaded, user will be prompted to download new version after this
* method was called.
*/
- (void)checkUpdate;
/**
* Check is there new version with customized delegate method.
* You should call - (void)updateLocalBuildNumber to update local number after you finished the
* customized update process if you called this method.
*
* @param delegate Delegate of checkupdate.
* @param updateMethodWithDictionary When checkUpdateWithDelegete was called, this delegate method
* will be called, the dicitonary which coantains version information will be passed to this method also.
* If there isn't new version ,the dictionary will be null.
*/
- (void)checkUpdateWithDelegete:(id)delegate selector:(SEL)updateMethodWithDictionary;
/**
* If you used checkUpdateWithDelegete, and there is new vesion you should call this method to
* update loacal build number to avoid SDK to prompt there is new version next time.
*/
- (void)updateLocalBuildNumber;
@end