Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 050e433

Browse files
author
dbeard
committed
iOS SDK: Expose isPendingUpdate and isFailedHash publicly
1 parent 2a182ab commit 050e433

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ios/CodePush/CodePush.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@
4848
*/
4949
+ (void)setDeploymentKey:(NSString *)deploymentKey;
5050

51+
/*
52+
* This method checks to see whether a specific package hash
53+
* has previously failed installation.
54+
*/
55+
- (BOOL)isFailedHash:(NSString*)packageHash;
56+
57+
/*
58+
* This method checks to see whether a specific package hash
59+
* represents a downloaded and installed update, that hasn't
60+
* been applied yet via an app restart.
61+
*/
62+
- (BOOL)isPendingUpdate:(NSString*)packageHash;
63+
5164
// The below methods are only used during tests.
5265
+ (BOOL)isUsingTestConfiguration;
5366
+ (void)setUsingTestConfiguration:(BOOL)shouldUseTestConfiguration;

0 commit comments

Comments
 (0)