public abstract class UpdateManagerListener extends StringListener
Copyright (c) 2011-2014 Bit Stadium GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.
|
Date |
getExpiryDate()
Return an expiry date for this build or null.
|
Class<? extends UpdateActivity> |
getUpdateActivityClass()
Return your own subclass of UpdateActivity for customization.
|
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,
String url)
Called when the update manager found an update.
|
void |
onUpdatePermissionsNotGranted()
Called when the update permissions had not been granted.
|
getStringForResource
public Class<? extends UpdateActivity> getUpdateActivityClass()
public Class<? extends UpdateFragment> getUpdateFragmentClass()
public void onNoUpdateAvailable()
public void onUpdateAvailable()
public void onCancel()
public void onUpdateAvailable(org.json.JSONArray data, String url)
data
- Information about the update.url
- Link to apk file update.public Date getExpiryDate()
public boolean onBuildExpired()
public boolean canUpdateInMarket()
public void onUpdatePermissionsNotGranted()
Copyright © 2015. All Rights Reserved.