PeriodicWorkRequestKt

public final class PeriodicWorkRequestKt


Summary

Public methods

static final @NonNull PeriodicWorkRequest.Builder
<W extends ListenableWorker> PeriodicWorkRequestBuilder(
    long repeatInterval,
    TimeUnit repeatIntervalTimeUnit
)

Creates a PeriodicWorkRequest.Builder with a given ListenableWorker.

static final @RequiresApi(value = 26) @NonNull PeriodicWorkRequest.Builder

Creates a PeriodicWorkRequest.Builder with a given ListenableWorker.

static final @NonNull PeriodicWorkRequest.Builder
<W extends ListenableWorker> PeriodicWorkRequestBuilder(
    long repeatInterval,
    TimeUnit repeatIntervalTimeUnit,
    long flexTimeInterval,
    TimeUnit flexTimeIntervalUnit
)

Creates a PeriodicWorkRequest.Builder with a given ListenableWorker.

static final @RequiresApi(value = 26) @NonNull PeriodicWorkRequest.Builder
<W extends ListenableWorker> PeriodicWorkRequestBuilder(
    Duration repeatInterval,
    Duration flexTimeInterval
)

Creates a PeriodicWorkRequest.Builder with a given ListenableWorker.

Public methods

PeriodicWorkRequestBuilder

public static final @NonNull PeriodicWorkRequest.Builder <W extends ListenableWorker> PeriodicWorkRequestBuilder(
    long repeatInterval,
    TimeUnit repeatIntervalTimeUnit
)

Creates a PeriodicWorkRequest.Builder with a given ListenableWorker.

Parameters
long repeatInterval

@see androidx.work.PeriodicWorkRequest.Builder

TimeUnit repeatIntervalTimeUnit

@see androidx.work.PeriodicWorkRequest.Builder

PeriodicWorkRequestBuilder

@RequiresApi(value = 26)
public static final @NonNull PeriodicWorkRequest.Builder <W extends ListenableWorker> PeriodicWorkRequestBuilder(Duration repeatInterval)

Creates a PeriodicWorkRequest.Builder with a given ListenableWorker.

Parameters