JobScheduler-如何确定唯一的工作ID? [英] JobScheduler - How do I determine a unique Job ID?

查看:85
本文介绍了JobScheduler-如何确定唯一的工作ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据文档,每个作业必须具有唯一的作业ID.
如果我使用也可以安排工作的第三方库,这是否意味着我不能使用与他们相同的工作ID?如果是这样,我如何避免此类冲突?

According to the documentation, jobs must have a unique Job ID per uid.
If I use a 3rd party library which also schedules jobs, does this mean I can't use the same Job ID as theirs? If so, how can I avoid these kind of collisions?

推荐答案

如果我使用也可以安排工作的第三方库,这是否意味着我不能使用与他们相同的工作ID?

If I use a 3rd party library which also schedules jobs, does this mean I can't use the same Job ID as theirs?

正确.

如果是这样,我如何避免此类冲突?

If so, how can I avoid these kind of collisions?

向图书馆的开发人员询问他们使用什么作业ID,或者这些作业ID是否可以通过某种方式配置.

Ask the developer of the library what job IDs they use, or if those job IDs are configurable somehow.

这篇关于JobScheduler-如何确定唯一的工作ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆