getWidgetData

suspend fun getWidgetData(widgetName: String): WidgetData?

Fetches widget data asynchronously. This is a suspend function that Swift can await using async/await.

Called from Swift timeline provider to get fresh data for timeline entries.

Return

The widget data, or null if no data provider or fetch failed

Parameters

widgetName

The name of the widget