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 TypeMethodDescriptionvoid
clear()
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.int
Return flags for displaying find-in-page matches.void
setDisplayFlags
(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.FinderResult
object. IfsearchString
is 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 0 or a combination ofFINDER_FIND_*
constants.- Returns:
- Result of the search operation as a
GeckoResult
object. - 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:
-