public class PluginConfigManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
PluginConfigManager.OnPluginConfigChangedListener
插件信息改变监听
|
static interface |
PluginConfigManager.OnSinglePluginRequestListener
单补请求回调
|
static class |
PluginConfigManager.PluginConfigData
数据类
|
限定符和类型 | 方法和说明 |
---|---|
void |
addPluginConfigChangeListener(PluginConfigManager.OnPluginConfigChangedListener listener)
添加config改变监听者
|
void |
cleanConfig()
清楚config缓存
|
static PluginConfigManager |
getInstance() |
PluginConfigManager.PluginConfigData |
getPluginConfigData()
获取缓存的config
|
void |
init(android.content.Context context)
初始化
|
void |
removeChangeListener(PluginConfigManager.OnPluginConfigChangedListener listener)
删除config监听者
|
void |
requestSinglePlugin(java.lang.String pluginId,
PluginConfigManager.OnSinglePluginRequestListener listener)
单补请求
|
public void init(android.content.Context context)
context
- public void addPluginConfigChangeListener(PluginConfigManager.OnPluginConfigChangedListener listener)
listener
- public void removeChangeListener(PluginConfigManager.OnPluginConfigChangedListener listener)
listener
- public void cleanConfig()
public PluginConfigManager.PluginConfigData getPluginConfigData()
public void requestSinglePlugin(java.lang.String pluginId, PluginConfigManager.OnSinglePluginRequestListener listener)
pluginId
- 插件idlistener
- 请求回调public static final PluginConfigManager getInstance()