java.lang.Object | |
↳ | com.pspdfkit.configuration.search.SearchConfiguration.Builder |
Builder to create SearchConfiguration
instances.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SearchConfiguration |
build()
Builds
SearchConfiguration from the values provided to the builder. | ||||||||||
SearchConfiguration.Builder |
maxSearchResults(int maxSearchResults)
Limits the maximum number of search results.
| ||||||||||
SearchConfiguration.Builder |
setSnippetLength(int snippetLength)
Sets the number of preview characters extracted with every search result.
| ||||||||||
SearchConfiguration.Builder |
setStartSearchChars(int startSearchChars)
Sets the number of characters that need to be entered for the search to start.
| ||||||||||
SearchConfiguration.Builder |
setStartSearchOnCurrentPage(boolean startSearchOnCurrentPage)
Sets whether the search should start on the current page or not.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Builds SearchConfiguration
from the values provided to the builder.
Limits the maximum number of search results. If not set maxSearchResults
will be used by default. To turn off limiting use UNLIMITED_SEARCH_RESULTS
.
maxSearchResults | Maximum count of search results to return, or UNLIMITED_SEARCH_RESULTS to turn off limiting.
|
---|
Sets the number of preview characters extracted with every search result.
snippetLength | Number of characters, defaults to {@value DEFAULT_SNIPPET_LENGTH}. |
---|
Sets the number of characters that need to be entered for the search to start.
startSearchChars | Number of characters needed to trigger the search, defaults to {@value DEFAULT_START_SEARCH_CHARS}. |
---|
Sets whether the search should start on the current page or not. This defaults to {@value DEFAULT_START_SEARCH_ON_CURRENT_PAGE}.
startSearchOnCurrentPage | true to start search on the current page, false to start from the beginning of the document. |
---|