public class SalesforceSDKUpgradeManager
extends java.lang.Object
Constructor and Description |
---|
SalesforceSDKUpgradeManager() |
SalesforceSDKUpgradeManager(com.salesforce.androidsdk.app.SalesforceSDKUpgradeManager.UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInstalledAccMgrVersion()
Returns the currently installed version of account manager.
|
protected java.lang.String |
getInstalledVersion(java.lang.String key)
Returns the currently installed version of the specified key.
|
static SalesforceSDKUpgradeManager |
getInstance()
Returns an instance of this class.
|
void |
upgrade()
Upgrade method.
|
protected void |
upgradeAccMgr()
Upgrades account manager data from existing client
version to the current version.
|
protected void |
writeCurVersion(java.lang.String key,
java.lang.String value)
Writes the current version to the shared preference file.
|
public SalesforceSDKUpgradeManager()
public SalesforceSDKUpgradeManager(com.salesforce.androidsdk.app.SalesforceSDKUpgradeManager.UserManager userManager)
public static SalesforceSDKUpgradeManager getInstance()
public void upgrade()
protected void upgradeAccMgr()
protected void writeCurVersion(java.lang.String key, java.lang.String value)
key
- Key to update.value
- New version number.public java.lang.String getInstalledAccMgrVersion()
protected java.lang.String getInstalledVersion(java.lang.String key)