TestWorkerBuilderKt

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

@NonNull
public static final 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

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
TestWorkerBuilder<@NonNull W>

The instance of TestWorkerBuilder