Widget Config
data class WidgetConfig(val displayName: String, val description: String = "", val supportedFamilies: List<WidgetFamily> = listOf(
WidgetFamily.Small,
WidgetFamily.Medium,
WidgetFamily.Large
), val updatePolicy: UpdatePolicy = UpdatePolicy.Periodic(), val configurable: Boolean = false)
Configuration for a Fidget widget.
Parameters
display Name
The user-facing name of the widget shown in the widget gallery.
description
A brief description of what the widget does.
supported Families
The widget sizes this widget supports.
update Policy
How the widget should update its content.
configurable
Whether the widget supports user configuration.
Constructors
Link copied to clipboard
constructor(displayName: String, description: String = "", supportedFamilies: List<WidgetFamily> = listOf(
WidgetFamily.Small,
WidgetFamily.Medium,
WidgetFamily.Large
), updatePolicy: UpdatePolicy = UpdatePolicy.Periodic(), configurable: Boolean = false)