TestWorkerBuilderKt

Added in 2.1.0

public final class TestWorkerBuilderKt


Summary

Public methods

static final @NonNull TestWorkerBuilder<@NonNull W>
<W extends Worker> TestWorkerBuilder(
    @NonNull Context context,
    @NonNull Executor executor,
    @NonNull Data inputData,
    @NonNull List<@NonNull String> tags,
    int runAttemptCount,
    @NonNull List<@NonNull Uri> triggeredContentUris,
    @NonNull List<@NonNull String> triggeredContentAuthorities
)

Builds an instance of TestWorkerBuilder.

Public methods

TestWorkerBuilder

public static final @NonNull TestWorkerBuilder<@NonNull W> <W extends Worker> TestWorkerBuilder(
    @NonNull Context context,
    @NonNull Executor executor,
    @NonNull Data inputData,
    @NonNull List<@NonNull String> tags,
    int runAttemptCount,
    @NonNull List<@NonNull Uri> triggeredContentUris,
    @NonNull List<@NonNull String> triggeredContentAuthorities
)

Builds an instance of TestWorkerBuilder.

Parameters
<W extends Worker>

The subtype of Worker

@NonNull Context context

The application Context

@NonNull Executor executor

The Executor that the Worker runs on

@NonNull Data inputData

The input data for the Worker

@NonNull List<@NonNull String> tags

The tags associated with this Worker

int runAttemptCount

The run attempt count of the Worker

@NonNull List<@NonNull Uri> triggeredContentUris

The list of triggered content Uris

@NonNull List<@NonNull String> triggeredContentAuthorities

The list of triggered content authorities

Returns
@NonNull TestWorkerBuilder<@NonNull W>

The instance of TestWorkerBuilder