
com.path.android.jobqueue.AsyncAddCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-priority-jobqueue Show documentation
Show all versions of android-priority-jobqueue Show documentation
a Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
package com.path.android.jobqueue;
import android.app.Activity;
/**
* If you are adding the job via the async adder, you can provide a callback method to receive the ID.
* Please keep in mind that job manager will keep a strong reference to this callback. So if the callback is an
* anonymous class inside an {@link Activity} context, it may leak the activity until the job is added.
*/
public interface AsyncAddCallback {
public void onAdded(long jobId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy