Class GeckoSession.ContentDelegate.ContextElement

Object
org.mozilla.geckoview.GeckoSession.ContentDelegate.ContextElement
Enclosing interface:
GeckoSession.ContentDelegate

public static class GeckoSession.ContentDelegate.ContextElement extends Object
Element details for onContextMenu callbacks.
  • Field Details

    • TYPE_NONE

      public static final int TYPE_NONE
      See Also:
    • TYPE_IMAGE

      public static final int TYPE_IMAGE
      See Also:
    • TYPE_VIDEO

      public static final int TYPE_VIDEO
      See Also:
    • TYPE_AUDIO

      public static final int TYPE_AUDIO
      See Also:
    • baseUri

      @Nullable public final String baseUri
      The base URI of the element's document.
    • linkUri

      @Nullable public final String linkUri
      The absolute link URI (href) of the element.
    • title

      @Nullable public final String title
      The title text of the element.
    • altText

      @Nullable public final String altText
      The alternative text (alt) for the element.
    • type

      public final int type
      The type of the element. One of the TYPE_NONE flags.
    • srcUri

      @Nullable public final String srcUri
      The source URI (src) of the element. Set for (nested) media elements.
  • Constructor Details

    • ContextElement

      protected ContextElement(@Nullable String baseUri, @Nullable String linkUri, @Nullable String title, @Nullable String altText, @NonNull String typeStr, @Nullable String srcUri)