Contents

init(configuration:context:)

Creates a new widget relevance for a specific configuration that is relevant in a specific context.

Declaration

init(configuration: Configuration, context: RelevantContext)

Parameters

  • configuration:

    The specific configuration

  • context:

    The relevant context where this widget is relevant.

Discussion

For example, a weather widget could specify that a configuration for a specific location is relevant for a the relevant context at that specific location.