Class GeckoSession.FinderResult

Object
org.mozilla.geckoview.GeckoSession.FinderResult
Enclosing class:
GeckoSession

@AnyThread public static class GeckoSession.FinderResult extends Object
Represent the result of a find-in-page operation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final RectF
    Bounds of the current match in client coordinates, or null if unknown.
    final int
    Ordinal number of the current match starting from 1, or 0 if no match.
    final int
    Flags used for the search; either 0 or a combination of FINDER_FIND_* flags.
    final boolean
    Whether a match was found.
    final String
    URI of the link, if the current match is a link, or null otherwise.
    final String
    Search string.
    final int
    Total number of matches found so far, or -1 if unknown.
    final boolean
    Whether the search wrapped around the top or bottom of the page.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor for tests
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • found

      public final boolean found
      Whether a match was found.
    • wrapped

      public final boolean wrapped
      Whether the search wrapped around the top or bottom of the page.
    • current

      public final int current
      Ordinal number of the current match starting from 1, or 0 if no match.
    • total

      public final int total
      Total number of matches found so far, or -1 if unknown.
    • searchString

      @NonNull public final String searchString
      Search string.
    • flags

      public final int flags
      Flags used for the search; either 0 or a combination of FINDER_FIND_* flags.
    • linkUri

      @Nullable public final String linkUri
      URI of the link, if the current match is a link, or null otherwise.
    • clientRect

      @Nullable public final RectF clientRect
      Bounds of the current match in client coordinates, or null if unknown.
  • Constructor Details

    • FinderResult

      protected FinderResult()
      Empty constructor for tests