Package org.mozilla.geckoview
Class SessionFinder
Object
org.mozilla.geckoview.SessionFinder
SessionFinder instances returned by GeckoSession.getFinder() performs
find-in-page operations.-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear any highlighted find-in-page matches.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.intReturn flags for displaying find-in-page matches.voidsetDisplayFlags(int flags) Set flags for displaying find-in-page matches.
-
Method Details
-
find
@NonNull public GeckoResult<GeckoSession.FinderResult> find(@Nullable 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. Optionally return results related to the search in aGeckoSession.FinderResultobject. IfsearchStringis null, search is performed using the previous search string.- Parameters:
searchString- String to search, or null to find again using the previous string.flags- Flags for performing the search; either FINDER_FIND_FORWARDGeckoSession.FINDER_FIND_FORWARDor a combination ofFINDER_FIND_*constants.- Returns:
- Result of the search operation as a
GeckoResultobject. - See Also:
-
clear
public void clear()Clear any highlighted find-in-page matches. -
getDisplayFlags
public int getDisplayFlags()Return flags for displaying find-in-page matches.- Returns:
- Display flags as a combination of
FINDER_DISPLAY_*constants. - See Also:
-
setDisplayFlags
public void setDisplayFlags(int flags) Set flags for displaying find-in-page matches.- Parameters:
flags- Display flags as a combination ofFINDER_DISPLAY_*constants.- See Also:
-