public static interface JobRequest.JobScheduledCallback
JobRequest
asynchronously on a background thread.Modifier and Type | Field and Description |
---|---|
static int |
JOB_ID_ERROR
The job ID in case scheduling the request failed.
|
Modifier and Type | Method and Description |
---|---|
void |
onJobScheduled(int jobId,
String tag,
Exception exception)
Called after your request was scheduled.
|
static final int JOB_ID_ERROR
void onJobScheduled(int jobId, @NonNull String tag, @Nullable Exception exception)
jobId
- The unique ID of your new scheduled JobRequest
. Or JOB_ID_ERROR
in case of a failure.tag
- The tag of the scheduled request.exception
- If scheduling the request failed, then the exception won't be null
.