WorkerParametersExtensions
public final class WorkerParametersExtensions
Summary
Public methods |
|
|---|---|
static final boolean |
isRemoteWorkRequest(@NonNull WorkerParameters receiver) |
static final @NonNull WorkerParameters |
<T extends ListenableWorker> usingRemoteService(Returns a new instance of |
static final @NonNull WorkerParameters |
usingRemoteService(Returns a new instance of |
Public methods
isRemoteWorkRequest
public static final boolean isRemoteWorkRequest(@NonNull WorkerParameters receiver)
| Returns | |
|---|---|
boolean |
|
usingRemoteService
public static final @NonNull WorkerParameters <T extends ListenableWorker> usingRemoteService(
@NonNull WorkerParameters receiver,
@NonNull ComponentName componentName
)
Returns a new instance of WorkerParameters representing a WorkRequest that can run in a process corresponding to the provided ComponentName.
| Parameters | |
|---|---|
<T extends ListenableWorker> |
The |
@NonNull ComponentName componentName |
The |
| Returns | |
|---|---|
@NonNull WorkerParameters |
A new instance of |
usingRemoteService
public static final @NonNull WorkerParameters usingRemoteService(
@NonNull WorkerParameters receiver,
@NonNull String workerClassName,
@NonNull ComponentName componentName
)
Returns a new instance of WorkerParameters representing a WorkRequest that can run in a process corresponding to the provided ComponentName.
| Parameters | |
|---|---|
@NonNull String workerClassName |
The fully qualified class name of the |
@NonNull ComponentName componentName |
The |
| Returns | |
|---|---|
@NonNull WorkerParameters |
A new instance of |