Interface UISearchTextFieldDelegate

    • Method Detail

      • searchTextFieldItemProviderForCopyingToken

        @NotNull
        default @NotNull NSItemProvider searchTextFieldItemProviderForCopyingToken​(@NotNull
                                                                                   @NotNull UISearchTextField searchTextField,
                                                                                   @NotNull
                                                                                   @NotNull UISearchToken token)
        Implements cut and copy of tokens. To support drag and drop and the Cut and Copy commands, your delegate must implement this method and return an NSItemProvider for the requested token. The field’s textPasteDelegate is responsible for implementing pasting of tokens. Your delegate can provide a plain text representation for pasting in other contexts, but should register a custom type identifier so it can recognize and reconstruct the token when pasted into the same field. This method will only be called if either of the field’s allowsCopyingTokens or allowsDeletingTokens properties is true.
      • searchTextFieldDidSelectSuggestion

        default void searchTextFieldDidSelectSuggestion​(@NotNull
                                                        @NotNull UISearchTextField searchTextField,
                                                        @NotNull
                                                        @NotNull UISearchSuggestion suggestion)
        searchSuggestions property will be set to nil after sending this message API-Since: 16.0