EdricChan03 / EdricChan03/androidx-ktx-extras

[WorkManager] Better Kotlin DSL for `Data`

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
api request enhancement
Dominant language
Kotlin
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

```kotlin
val workData = buildData {
// Perhaps we can have similar utilities to that of a MutableMap?
this += "key" to 123
this += workDataOf(/* ... */) // Add existing data
addData {
// Add data from a Data.Builder
putBoolean("abc", false)
}

this -= workDataOf(/* ... */) // Remove the mutable data's properties that are present in the specified Data
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.