-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optional Notifications For Worker (#103)
- withNotification member variables for Worker.kt - default argument of boolean false
- Loading branch information
1 parent
c9073f3
commit 9d65f34
Showing
4 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ import android.content.Intent | |
* @email [email protected] | ||
* @date 10/18/20 | ||
**/ | ||
abstract class Worker(val id: Int, val description: String, var interval: Long? = null, var delay: Long? = null, var hourly: Boolean = false, var daily: Boolean = false, var monthly: Boolean = false, var yearly: Boolean = false){ | ||
abstract class Worker(val id: Int, val description: String, var withNotification: Boolean = false, var interval: Long? = null, var delay: Long? = null, var hourly: Boolean = false, var daily: Boolean = false, var monthly: Boolean = false, var yearly: Boolean = false){ | ||
abstract val receiver: WorkReceiver? | ||
|
||
suspend abstract fun doWork(ctx: Context) | ||
|