public interface IUpdateChecker
| Modifier and Type | Field and Description |
|---|---|
static long |
ONE_TIME_CHECK |
static java.lang.String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateCheck(java.lang.String profileId,
<any> iusToCheckQuery,
long delay,
long poll,
IUpdateListener listener)
Adds an update listener that will be notified when updates are available for all
installable units that satisfy the given query.
|
void |
removeUpdateCheck(IUpdateListener listener)
Removes an update listener from the set of listeners registered with this update
checker.
|
static final java.lang.String SERVICE_NAME
static final long ONE_TIME_CHECK
void addUpdateCheck(java.lang.String profileId,
<any> iusToCheckQuery,
long delay,
long poll,
IUpdateListener listener)
removeUpdateCheck(IUpdateListener)
method. Adding a listener that is identical to a listener that is already registered
has no effect.
Once the listener is registered, it will continue to receive notification of updates
based on the specified polling frequency. However, if a delay value of ONE_TIME_CHECK
is used, only a single update check will occur for that listener. If this delay value
is used, the specified polling frequency is ignored.
profileId - The profile id to check for updatesiusToCheckQuery - An installable unit query that matches the units to check for updatesdelay - The delay in milliseconds before the first query should occur, or ONE_TIME_CHECK
to indicate that a single update check should occur immediatelypoll - The polling frequency, in milliseconds, between checks for updateslistener - The listener to be notified of updatesremoveUpdateCheck(IUpdateListener)void removeUpdateCheck(IUpdateListener listener)
listener - The listener to remove#addUpdateCheck(String, IQuery, long, long, IUpdateListener)