Android-job: Get running jobs

Created on 20 Jun 2017  路  4Comments  路  Source: evernote/android-job

Is there a way i can get all jobs that are currently running or be notified through a broadcast when a job finishes.
I can get all the pending jobs but i would like to know if a job started or is running or ended.

question

All 4 comments

Yes,

JobManager.instance().allJobs.filterNot { it.isFinished }

@vRallev great thanks.
This might be off topic but is there a way i can check if the job is running,maybe check if the thread spawned by that job is running or something like that?

If the job is not finished, then it's running. If the job doesn't exist for a request, then it's not running, yet.

@vRallev Thank You

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krokyze picture krokyze  路  3Comments

ha-D picture ha-D  路  7Comments

ExploiTR picture ExploiTR  路  6Comments

karntrehan picture karntrehan  路  5Comments

Haoxiqiang picture Haoxiqiang  路  3Comments