Contents

suggestedFocusFilters(for:)

You can implement this method to return a list of suggested focus configurations. This is useful when the suggested focus configurations are different from the configuration when the focus is turned off.

Declaration

static func suggestedFocusFilters(for context: FocusFilterSuggestionContext) async -> [Self]

Parameters

  • context:

    The focus configuration context which the suggested configurations could be determined from.

Return Value

A list of suggested focus configurations where the first one is the most suggested configuration. Returns an empty array if there is no suggested focus configurations. The system will use the default value per parameters in this case.

See Also

Getting the current app configuration