public class SideloadedPluginProvider extends BaseProductProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCAL_SIDELOADED_REPO_PATH |
_cache, _context| Constructor and Description |
|---|
SideloadedPluginProvider(android.app.Activity context) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getAPK(ProductInformation product)
Runs on UI thread, must be quick (i.e.
|
void |
install(ProductInformation product)
Base impl ignores bForce
|
boolean |
installed(java.lang.String pkg)
Notification that an app has been installed
|
protected ProductRepository |
load()
Load cached index
|
ProductRepository |
parseRepo(java.lang.String repoType,
java.io.File repoIndex)
Override to convert to SideloadedPluginInformation instances
|
ProductRepository |
rebuild(ProductProviderManager.ProgressDialogListener l)
Rebuild cached repo index
Currently we only do this on background thread
|
boolean |
uninstalled(java.lang.String pkg)
Notification that an app has been uninstalled
|
public static final java.lang.String LOCAL_SIDELOADED_REPO_PATH
public SideloadedPluginProvider(android.app.Activity context)
protected ProductRepository load()
BaseProductProviderload in class BaseProductProviderpublic ProductRepository parseRepo(java.lang.String repoType, java.io.File repoIndex)
parseRepo in class BaseProductProviderrepoType - the type of repositoryrepoIndex - the index file for the repositorypublic ProductRepository rebuild(ProductProviderManager.ProgressDialogListener l)
ProductProviderManager.Providerpublic java.io.File getAPK(ProductInformation product)
BaseProductProvidergetAPK in class BaseProductProviderproduct - the product informationpublic void install(ProductInformation product)
BaseProductProviderinstall in interface ProductProviderManager.Providerinstall in class BaseProductProviderproduct - install the product described by the passed in product informationpublic boolean installed(java.lang.String pkg)
ProductProviderManager.Providerinstalled in interface ProductProviderManager.Providerinstalled in class BaseProductProviderpublic boolean uninstalled(java.lang.String pkg)
ProductProviderManager.Provideruninstalled in interface ProductProviderManager.Provideruninstalled in class BaseProductProvider