Class SearchConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public abstract class SearchConfiguration implements Parcelable
Class containing search configuration properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
SearchConfiguration.Builder
Builder to create SearchConfiguration instances.
-
Field Summary
Fields Modifier and Type Field Description public final static int
DEFAULT_START_SEARCH_CHARS
public final static int
DEFAULT_SNIPPET_LENGTH
public final static boolean
DEFAULT_START_SEARCH_ON_CURRENT_PAGE
public final static int
UNLIMITED_SEARCH_RESULTS
-
Constructor Summary
Constructors Constructor Description SearchConfiguration()
-
Method Summary
Modifier and Type Method Description abstract int
getStartSearchChars()
Returns the number of letter after which the search starts. abstract int
getSnippetLength()
Returns the search snippet length, which is a number of letters displayed in the search result preview. abstract boolean
isStartSearchOnCurrentPage()
Returns true
if the search should be started on the current page,false
to start from the beginning.abstract Integer
getMaxSearchResults()
Returns maximum search results. -
-
Method Detail
-
getStartSearchChars
abstract int getStartSearchChars()
Returns the number of letter after which the search starts.
- Returns:
Number of letters in the input field after which the search is triggered.
-
getSnippetLength
abstract int getSnippetLength()
Returns the search snippet length, which is a number of letters displayed in the search result preview.
- Returns:
Search snippet length.
-
isStartSearchOnCurrentPage
abstract boolean isStartSearchOnCurrentPage()
Returns
true
if the search should be started on the current page,false
to start from the beginning.- Returns:
true
to start search from current page,false
to start from beginning.
-
getMaxSearchResults
@Nullable() abstract Integer getMaxSearchResults()
Returns maximum search results.
- Returns:
maximum search results, or
null
if not set.
-
-
-
-