PeriodicWorkRequestKt
Added in 1.0.0
public final class PeriodicWorkRequestKt
Summary
Public methods
PeriodicWorkRequestBuilder
Artifact: androidx.work:work-runtime
@RequiresApi(value = 26)
public static final @NonNull PeriodicWorkRequest.Builder <W extends ListenableWorker> PeriodicWorkRequestBuilder(
@NonNull Duration repeatInterval
)
Creates a PeriodicWorkRequest.Builder
with a given ListenableWorker
.
PeriodicWorkRequestBuilder
Artifact: androidx.work:work-runtime
@RequiresApi(value = 26)
public static final @NonNull PeriodicWorkRequest.Builder <W extends ListenableWorker> PeriodicWorkRequestBuilder(
@NonNull Duration repeatInterval,
@NonNull Duration flexTimeInterval
)
Creates a PeriodicWorkRequest.Builder
with a given ListenableWorker
.
PeriodicWorkRequestBuilder
Artifact: androidx.work:work-runtime
public static final @NonNull PeriodicWorkRequest.Builder <W extends ListenableWorker> PeriodicWorkRequestBuilder(
long repeatInterval,
@NonNull TimeUnit repeatIntervalTimeUnit
)
Creates a PeriodicWorkRequest.Builder
with a given ListenableWorker
.
PeriodicWorkRequestBuilder
Artifact: androidx.work:work-runtime
public static final @NonNull PeriodicWorkRequest.Builder <W extends ListenableWorker> PeriodicWorkRequestBuilder(
long repeatInterval,
@NonNull TimeUnit repeatIntervalTimeUnit,
long flexTimeInterval,
@NonNull TimeUnit flexTimeIntervalUnit
)
Creates a PeriodicWorkRequest.Builder
with a given ListenableWorker
.