1
1
/****************************************************************************
2
- * Copyright 2021, Optimizely, Inc. and contributors *
2
+ * Copyright 2021, Optimizely, Inc. and contributors *
3
3
* *
4
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
5
* you may not use this file except in compliance with the License. *
@@ -45,7 +45,6 @@ public class WorkerScheduler {
45
45
* Unschedule a scheduled service for a given worker id
46
46
* @param context current application context
47
47
* @param workerId work id to cancel
48
- * @return An {@link Operation} that can be used to determine when the cancelAllWorkByTag has completed
49
48
*/
50
49
public static void unscheduleService (Context context , String workerId ) {
51
50
WorkManager .getInstance (context ).cancelAllWorkByTag (workerId );
@@ -58,7 +57,7 @@ public static void unscheduleService(Context context, String workerId) {
58
57
* @param clazz class based on ListenableWorker
59
58
* @param data androidx.work.Data
60
59
* @param interval the interval for the repeated service
61
- * @return An < WorkRequest, Operation> that can be used for tracing work state
60
+ * @return An ( WorkRequest, Operation) that can be used for tracing work state
62
61
*/
63
62
public static AbstractMap .SimpleEntry <WorkRequest , Operation > scheduleService (Context context , String workerId , Class clazz , Data data , long interval ) {
64
63
WorkManager .getInstance (context ).cancelAllWorkByTag (workerId );
@@ -91,7 +90,7 @@ public static AbstractMap.SimpleEntry<WorkRequest, Operation> scheduleService(Co
91
90
* @param clazz - worker class
92
91
* @param data - input data for the worker
93
92
* @param retryInterval - the dispatch retry interval in milli-seconds
94
- * @return An < WorkRequest, Operation> that can be used for tracing work state
93
+ * @return An ( WorkRequest, Operation) that can be used for tracing work state
95
94
*/
96
95
public static AbstractMap .SimpleEntry <WorkRequest , Operation > startService (Context context , String workerId , Class clazz , Data data , Long retryInterval ) {
97
96
// Create a WorkRequest for your Worker and sending it input
0 commit comments