WorkRequest

public abstract class WorkRequest
extends Object

java.lang.Object
   ↳ androidx.work.WorkRequest


The base interface for work requests.

Summary

Nested classes

class WorkRequest.Builder<B extends Builder, W extends WorkRequest>

A builder for WorkRequest

Constants

long DEFAULT_BACKOFF_DELAY_MILLIS

long MAX_BACKOFF_MILLIS

long MIN_BACKOFF_MILLIS

Protected constructors

WorkRequest(UUID id, WorkSpec workSpec, Set<String> tags)

Public methods

UUID getId()

Gets the unique identifier associated with this unit of work.

Inherited methods

Constants

DEFAULT_BACKOFF_DELAY_MILLIS

long DEFAULT_BACKOFF_DELAY_MILLIS

Constant Value: 30000 (0x0000000000007530)

MAX_BACKOFF_MILLIS

long MAX_BACKOFF_MILLIS

Constant Value: 18000000 (0x000000000112a880)

MIN_BACKOFF_MILLIS

long MIN_BACKOFF_MILLIS

Constant Value: 10000 (0x0000000000002710)

Protected constructors

WorkRequest

WorkRequest (UUID id, 
                WorkSpec workSpec, 
                Set<String> tags)

Parameters
id UUID

workSpec WorkSpec

tags Set

Public methods

getId

UUID getId ()

Gets the unique identifier associated with this unit of work.

Returns
UUID The identifier for this unit of work