WidgetContext

data class WidgetContext<T : WidgetData>(val family: WidgetFamily, val data: T?)

Context provided to widget content composables.

Parameters

family

The widget size/family being rendered.

data

The widget's data, if available.

Constructors

Link copied to clipboard
constructor(family: WidgetFamily, data: T?)

Properties

Link copied to clipboard
val data: T?
Link copied to clipboard