Contents

invalidateRelevance(ofKind:)

Mark the relevance for a kind as invalid.

Declaration

func invalidateRelevance(ofKind kind: String)

Parameters

  • kind:

    A string that identifies the widget and matches the value you used when you created the widget’s configuration.

Discussion

Call this function when the relevance returned for a widget has changed and needs to be reloaded.

Marking relevance as invalid causes the system to call, at a later time, the relevance function on the timeline provider that matches the specified kind.