SearchSuggestionView
public class SearchSuggestionView : SimpleItemView
SearchSuggestionView displays a suggestion retrieved from the clipboard.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an instance of SearchSuggestionView using a custom theme, suggestion term and suggestion selection handler.
Declaration
Swift
public convenience init( withTheme theme: SearchingThemeProtocol, selectionHandler: SearchSuggestionSelectionHandler? )
Parameters
theme
Theme conforming to the
SearchingThemeProtocol
. For the default theme use SearchingTheme.default.selectionHandler
An object being handler for suggestion selection callback
-
Configures an instance of SearchSuggestionView using a custom theme, suggestion term and suggestion selection handler. This method should be used if the SearchSuggestionView is initialized via IB.
Declaration
Swift
public func setup(withTheme theme: SearchingThemeProtocol, selectionHandler: SearchSuggestionSelectionHandler?)
Parameters
theme
Theme conforming to the
SearchingThemeProtocol
. For the default theme use SearchingTheme.default.selectionHandler
An object being handler for suggestion selection callback
-
Declaration
Swift
override public func setup()
-
Inserts new suggestion
Declaration
Swift
public func insert(suggestion: SearchSuggestion)
Parameters
suggestion
Suggestion that should be displayed.