WidgetConfig

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

displayName

The user-facing name of the widget shown in the widget gallery.

description

A brief description of what the widget does.

supportedFamilies

The widget sizes this widget supports.

updatePolicy

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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard