Allow delegate to decide how to proceed with new update

This commit is contained in:
Marcus Osobase authored and Marcus Ososbase committed 2017-06-22 17:26:33 -04:00
1 parent cd57836ca5
commit b3afccee9d
1 file changed
+13
+13
View File
@@ -60,6 +60,9 @@ SU_EXPORT @interface SUUpdater : NSObject
*/
- (instancetype)initForBundle:(NSBundle *)bundle;
@property (nonatomic) BOOL suppressUI;
/*!
Suppress sparkle UI. This should prevent any Sparkle UI from popping up.
Updates should be handled by the host.
@@ -119,6 +122,16 @@ SU_EXPORT @interface SUUpdater : NSObject
*/
@property BOOL automaticallyDownloadsUpdates;
/*!
Called when a valid update is found by the update driver and provides delegate ability to respond.
\param updater The SUUpdater instance.
\param item The appcast item corresponding to the update that is proposed to be installed.
\param responseBlock The block carrying the users response to update.
*/
- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)item respondWithChoice:(void (^)(SUDUpdateAlertChoice))responseBlock;
/*!
A property indicating the current automatic update check interval.