TestListenableWorkerBuilderKt

Added in 2.1.0

public final class TestListenableWorkerBuilderKt


Summary

Public methods

static final @NonNull TestListenableWorkerBuilder<@NonNull W>
<W extends ListenableWorker> TestListenableWorkerBuilder(
    @NonNull Context context,
    @NonNull Data inputData,
    @NonNull List<@NonNull String> tags,
    int runAttemptCount,
    @NonNull List<@NonNull Uri> triggeredContentUris,
    @NonNull List<@NonNull String> triggeredContentAuthorities
)

Builds an instance of TestListenableWorkerBuilder.

Public methods

TestListenableWorkerBuilder

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

Builds an instance of TestListenableWorkerBuilder.

Parameters
<W extends ListenableWorker>

The subtype of ListenableWorker

@NonNull Context context

The application Context

@NonNull Data inputData

The input data for the ListenableWorker

@NonNull List<@NonNull String> tags

The tags associated with this ListenableWorker

int runAttemptCount

The run attempt count of the ListenableWorker

@NonNull List<@NonNull Uri> triggeredContentUris

The list of triggered content Uris

@NonNull List<@NonNull String> triggeredContentAuthorities

The list of triggered content authorities