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()
BaseProductProvider
load
in class BaseProductProvider
public ProductRepository parseRepo(java.lang.String repoType, java.io.File repoIndex)
parseRepo
in class BaseProductProvider
repoType
- the type of repositoryrepoIndex
- the index file for the repositorypublic ProductRepository rebuild(ProductProviderManager.ProgressDialogListener l)
ProductProviderManager.Provider
public java.io.File getAPK(ProductInformation product)
BaseProductProvider
getAPK
in class BaseProductProvider
product
- the product informationpublic void install(ProductInformation product)
BaseProductProvider
install
in interface ProductProviderManager.Provider
install
in class BaseProductProvider
product
- install the product described by the passed in product informationpublic boolean installed(java.lang.String pkg)
ProductProviderManager.Provider
installed
in interface ProductProviderManager.Provider
installed
in class BaseProductProvider
public boolean uninstalled(java.lang.String pkg)
ProductProviderManager.Provider
uninstalled
in interface ProductProviderManager.Provider
uninstalled
in class BaseProductProvider