@AnyThread public final class SessionFinder extends Object
SessionFinder
instances returned by GeckoSession.getFinder()
performs
find-in-page operations.Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear any highlighted find-in-page matches.
|
GeckoResult<GeckoSession.FinderResult> |
find(String searchString,
int flags)
Find and select a string on the current page, starting from the current selection or the
start of the page if there is no selection.
|
int |
getDisplayFlags()
Return flags for displaying find-in-page matches.
|
void |
setDisplayFlags(int flags)
Set flags for displaying find-in-page matches.
|
@NonNull public GeckoResult<GeckoSession.FinderResult> find(@Nullable String searchString, int flags)
GeckoSession.FinderResult
object. If searchString
is null, search
is performed using the previous search string.searchString
- String to search, or null to find again using the previous string.flags
- Flags for performing the search; either 0 or a combination of FINDER_FIND_*
constants.GeckoResult
object.clear()
,
setDisplayFlags(int)
public void clear()
find(java.lang.String, int)
,
setDisplayFlags(int)
public int getDisplayFlags()
FINDER_DISPLAY_*
constants.setDisplayFlags(int)
,
find(java.lang.String, int)
public void setDisplayFlags(int flags)
flags
- Display flags as a combination of FINDER_DISPLAY_*
constants.getDisplayFlags()
,
find(java.lang.String, int)