public static interface ProductProviderManager.Provider
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String pkg) |
void |
dispose() |
ProductRepository |
get()
Get cached repo contents
|
void |
install(ProductInformation product)
User has requested to install the product
This is done on UI thread by default, so if operation may be long running, implementations
should off load to another thread
|
boolean |
installed(java.lang.String pkg)
Notification that an app has been installed
|
boolean |
isRemote()
Check if the repo is hosted remotely (not on this device)
|
ProductRepository |
rebuild(ProductProviderManager.ProgressDialogListener listener)
Rebuild cached repo index
Currently we only do this on background thread
|
void |
uninstall(ProductInformation product)
User has requested to uninstall the product
This is done on UI thread by default, so if operation may be long running, implementations
should off load to another thread
|
boolean |
uninstalled(java.lang.String pkg)
Notification that an app has been uninstalled
|
void dispose()
ProductRepository get()
ProductRepository rebuild(ProductProviderManager.ProgressDialogListener listener)
boolean contains(java.lang.String pkg)
boolean installed(java.lang.String pkg)
pkg
- boolean uninstalled(java.lang.String pkg)
pkg
- void install(ProductInformation product)
product
- the product information used to determine how to install.void uninstall(ProductInformation product)
product
- boolean isRemote()