Package org.mozilla.geckoview
Class GeckoSession.ContentDelegate.ContextElement
Object
org.mozilla.geckoview.GeckoSession.ContentDelegate.ContextElement
- Enclosing interface:
- GeckoSession.ContentDelegate
Element details for onContextMenu callbacks.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The alternative text (alt) for the element.final String
The base URI of the element's document.final String
The absolute link URI (href) of the element.final String
The source URI (src) of the element.final String
The text content of the elementfinal String
The title text of the element.final int
The type of the element.static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ContextElement
(String baseUri, String linkUri, String title, String altText, String typeStr, String srcUri) protected
ContextElement
(String baseUri, String linkUri, String title, String altText, String typeStr, String srcUri, String textContent) ContextElement constructor. -
Method Summary
-
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
The base URI of the element's document. -
linkUri
The absolute link URI (href) of the element. -
title
The title text of the element. -
altText
The alternative text (alt) for the element. -
type
public final int typeThe type of the element. One of theTYPE_NONE
flags. -
srcUri
The source URI (src) of the element. Set for (nested) media elements. -
textContent
The text content of the element
-
-
Constructor Details
-
ContextElement
protected ContextElement(@Nullable String baseUri, @Nullable String linkUri, @Nullable String title, @Nullable String altText, @NonNull String typeStr, @Nullable String srcUri, @Nullable String textContent) ContextElement constructor.- Parameters:
baseUri
- The base URI.linkUri
- The absolute link URI (href).title
- The title text.altText
- The alternative text (alt).typeStr
- The type of the element.srcUri
- The source URI (src).textContent
- The text content.
-
ContextElement
-