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
themeTheme conforming to the
SearchingThemeProtocol. For the default theme use SearchingTheme.default.selectionHandlerAn 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
themeTheme conforming to the
SearchingThemeProtocol. For the default theme use SearchingTheme.default.selectionHandlerAn object being handler for suggestion selection callback
-
Declaration
Swift
override public func setup() -
Inserts new suggestion
Declaration
Swift
public func insert(suggestion: SearchSuggestion)Parameters
suggestionSuggestion that should be displayed.
TomTom SDK for iOS (0.53.1)
SearchSuggestionView