public abstract class UpdateManagerListener
extends java.lang.Object
Constructor and Description |
---|
UpdateManagerListener() |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateInMarket()
To allow updates even if installed from a market, override this
to return true.
|
java.util.Date |
getExpiryDate()
Return an expiry date for this build or null.
|
java.lang.Class<? extends UpdateActivity> |
getUpdateActivityClass()
Deprecated.
as of 5.0.0, use
getUpdateFragmentClass() instead. |
java.lang.Class<? extends UpdateFragment> |
getUpdateFragmentClass()
Return your own subclass of UpdateFragment for customization.
|
boolean |
onBuildExpired()
Called when the build is expired.
|
void |
onCancel()
Called when the user dismisses the update dialog.
|
void |
onNoUpdateAvailable()
Called when the update manager found no update.
|
void |
onUpdateAvailable()
Called when the update manager found an update.
|
void |
onUpdateAvailable(org.json.JSONArray data,
java.lang.String url)
Called when the update manager found an update.
|
void |
onUpdatePermissionsNotGranted()
Deprecated.
as of 5.0.0.
|
boolean |
useUpdateDialog(android.content.Context context)
Determines how update fragment will be presented: as dialog or activity.
|
@Deprecated public java.lang.Class<? extends UpdateActivity> getUpdateActivityClass()
getUpdateFragmentClass()
instead.public java.lang.Class<? extends UpdateFragment> getUpdateFragmentClass()
public boolean useUpdateDialog(android.content.Context context)
context
- the context to usepublic void onNoUpdateAvailable()
public void onUpdateAvailable()
public void onCancel()
public void onUpdateAvailable(org.json.JSONArray data, java.lang.String url)
data
- Information about the update.url
- Link to apk file update.public java.util.Date getExpiryDate()
public boolean onBuildExpired()
public boolean canUpdateInMarket()
@Deprecated public void onUpdatePermissionsNotGranted()