Contents

relevance()

Provides an object containing attributes that describe when a specific widget is relevant.

Declaration

func relevance() async -> WidgetRelevance<Self.Intent>

Return Value

The object that contains attributes that describe when a specific widget is relevant.

Discussion

The system can use the relevance to show this widget in the Smart Stack when the provided relevance matches a person’s context. For example, if you indicate relevance at a specific location, the system could show the widget when a person is at or close to the location.

By default, this method returns no relevances. Implement this requirement to tell the system that your widget is relevant.