JobScheduler - How do I determine a unique Job ID?

前端 未结 2 909
一整个雨季
一整个雨季 2021-02-05 02:59

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 a

2条回答
  •  感情败类
    2021-02-05 03:26

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

    Correct.

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

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

提交回复
热议问题