首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安卓WorkManager vs JobScheduler

安卓WorkManager vs JobScheduler
EN

Stack Overflow用户
提问于 2018-05-11 02:31:43
回答 6查看 35.5K关注 0票数 65

如果我们已经有了 JobScheduler和一些具有相同功能的漂亮的后端口(AndroidJobFirebaseJobDispatcher),为什么我们还需要新的Android JobScheduler呢?它有什么杀手级的功能吗?因为我没有看到任何让我想要迁移到另一个调度器的。

EN

Stack Overflow用户

发布于 2019-08-10 02:52:40

WorkManager位于JobScheduler和AlarmManager之上。WorkManager根据用户的设备API级别等条件选择要使用的正确API

WorkManager是一个简单但非常灵活的库,它有很多额外的好处。其中包括:

代码语言:javascript
运行
复制
 -Support for both asynchronous one-off and periodic tasks.
 -Support for constraints such as network conditions, storage space, and charging -status 
 -Chaining of complex work requests, including running work in parallel.
 -Output from one work request used as input for the next.
 -Handles API level compatibility back to API level 14.
 -Works with or without Google Play services.
 -Follows system health best practices.
 -LiveData support to easily display work request state in UI.
票数 3
EN
查看全部 6 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50279364

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档