Contents

widgetSearch(_:resultSelected:)

Tells the delegate that a user chose the specified search result.

Declaration

func widgetSearch(_ controller: NCWidgetSearchViewController, resultSelected object: Any)

Parameters

  • controller:

    The widget’s search view controller.

  • object:

    The object in the search view controller’s Searchresults array that represents the search result chosen by the user.

Discussion

When this method returns, the search view controller is dismissed.

See Also

Responding to User Choices