Added a new flavour of checkAvailable() to UpdateManager interface.

This commit is contained in:
dev
2015-06-09 03:57:44 +00:00
parent 226bee64ef
commit e067761947
2 changed files with 35 additions and 1 deletions

View File

@ -122,6 +122,16 @@ public interface UpdateManager {
*/
public boolean notifyComplete(UpdateTask task, String actualVersion, File file);
/**
* Is an update available?
* Blocking.
* An available update may still have a constraint or lack sources.
* @param type the UpdateType of this request
* @return new version or null if nothing newer is available
* @since 0.9.21
*/
public String checkAvailable(UpdateType type);
/**
* Is an update available?
* Blocking.