library/widgets: document public API for detekt
- Commit
c3d3262d0fcc0f967d271c43261f45d33364a365- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 14:42 UTC (19 days ago)
- Parents
0f47191
Add concise KDoc to every public class, object, interface and enum (including nested types) that detekt's UndocumentedPublicClass rule flagged in this module. Docs only: no behaviour, visibility or config changes. Verified: ./gradlew :library:widgets:detekt reports 0 UndocumentedPublicClass findings (pre-existing error-severity findings in other rules, where present, are untouched), and the module unit tests pass.
Diff
library/widgets/src/main/java/com/vayunmathur/library/widgets/Widgets.kt
diff --git a/library/widgets/src/main/java/com/vayunmathur/library/widgets/Widgets.kt b/library/widgets/src/main/java/com/vayunmathur/library/widgets/Widgets.ktindex 5dd0cc6371..239673b5ea 100644--- a/library/widgets/src/main/java/com/vayunmathur/library/widgets/Widgets.kt+++ b/library/widgets/src/main/java/com/vayunmathur/library/widgets/Widgets.kt@@ -27,6 +27,7 @@ import java.io.File import java.util.concurrent.TimeUnit import kotlin.reflect.KClass +/** WorkManager worker that refreshes the Glance widget named in its input data. */ class GenericWidgetWorker( private val context: Context, workerParams: WorkerParameters@@ -53,6 +54,7 @@ class GenericWidgetWorker( } } + /** Input-data keys for [GenericWidgetWorker]. */ companion object { const val ARG_WIDGET_CLASS = "widget_class_name" private const val TAG = "GenericWidgetWorker"@@ -138,6 +140,7 @@ class WidgetPreviewWorker( } } + /** Input-data keys for [WidgetPreviewWorker]. */ companion object { const val ARG_RECEIVER_CLASS = "receiver_class_name" private const val TAG = "WidgetPreviewWorker"