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 @interfaceMedia type definitions for fullscreen content. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe alternative text (alt) for the element.final StringThe base URI of the element's document.final StringThe absolute link URI (href) of the element.final StringThe source URI (src) of the element.final StringThe text content of the elementfinal StringThe title text of the element.final intThe type of the element.static final intRepresents an audio content type.static final intRepresents an image content type.static final intRepresents no content type.static final intRepresents a video content type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextElement(String baseUri, String linkUri, String title, String altText, String typeStr, String srcUri) Constructs a ContextElement without text content.protectedContextElement(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_NONERepresents no content type.- See Also:
-
TYPE_IMAGE
public static final int TYPE_IMAGERepresents an image content type.- See Also:
-
TYPE_VIDEO
public static final int TYPE_VIDEORepresents a video content type.- See Also:
-
TYPE_AUDIO
public static final int TYPE_AUDIORepresents an audio content type.- 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_NONEflags. -
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
protected ContextElement(@Nullable String baseUri, @Nullable String linkUri, @Nullable String title, @Nullable String altText, @NonNull String typeStr, @Nullable String srcUri) Constructs a ContextElement without text content.- 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).
-