提交 e781b736 编写于 作者: J JessYan

Improve AppLifecyclesImpl

上级 932e630a
......@@ -71,18 +71,6 @@ public class AppLifecyclesImpl implements AppLifecycles {
//使用 IntelligentCache.KEY_KEEP 作为 key 的前缀, 可以使储存的数据永久存储在内存中
//否则存储在 LRU 算法的存储空间中, 前提是 extras 使用的是 IntelligentCache (框架默认使用)
ArmsUtils.obtainAppComponentFromContext(application).extras().put(IntelligentCache.KEY_KEEP + RefWatcher.class.getName(), BuildConfig.USE_CANARY ? LeakCanary.install(application) : RefWatcher.DISABLED);
//扩展 AppManager 的远程遥控功能
ArmsUtils.obtainAppComponentFromContext(application).appManager().setHandleListener((appManager, message) -> {
switch (message.what) {
//case 0:
//do something ...
// break;
}
});
//Usage:
//Message msg = new Message();
//msg.what = 0;
//AppManager.post(msg); like EventBus
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册