Package io.anyline2.legacy.products
Class AnylineUpdater
- java.lang.Object
-
- io.anyline2.legacy.products.AnylineUpdater
-
public class AnylineUpdater extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AnylineUpdater()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cancelUpdate()
static AssetController
getControllerForPluginId(java.lang.String pluginId)
static java.lang.String
getLocalAssetVersion(AssetContext assetContext)
Gets the local asset version based on context Returns null if no assets are foundstatic void
update(android.content.Context context, AssetContext assetContext, IAnylineUpdateDelegate updateDelegate, ScanController.PluginType pluginType)
-
-
-
Method Detail
-
update
public static void update(@NonNull android.content.Context context, AssetContext assetContext, IAnylineUpdateDelegate updateDelegate, ScanController.PluginType pluginType)
-
cancelUpdate
public static void cancelUpdate()
-
getLocalAssetVersion
public static java.lang.String getLocalAssetVersion(AssetContext assetContext)
Gets the local asset version based on context Returns null if no assets are found- Parameters:
assetContext
- asset context- Returns:
- asset version
-
getControllerForPluginId
public static AssetController getControllerForPluginId(java.lang.String pluginId)
-
-