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 link text of the elementfinal StringThe absolute link URI (href) of the element.final StringThe source URI (src) of the element.final StringDeprecated.final 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) Deprecated.This constructor has been deprecated and will be removed in a future version.protectedContextElement(String baseUri, String linkUri, String title, String altText, String typeStr, String srcUri, String textContent, String linkText) 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
@Deprecated @DeprecationSchedule(id="context-element-api-updates", version=151) @Nullable public final String textContentDeprecated.This field is deprecated, please uselinkTextto retrieve the text associated with a link element.The text content of the element -
linkText
The link text 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, @Nullable String linkText) 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.linkText- The link text content.
-
ContextElement
@Deprecated @DeprecationSchedule(id="context-element-api-updates", version=151) protected ContextElement(@Nullable String baseUri, @Nullable String linkUri, @Nullable String title, @Nullable String altText, @NonNull String typeStr, @Nullable String srcUri) Deprecated.This constructor has been deprecated and will be removed in a future version. Please use the other overloaded constructors.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).
-
linkTextto retrieve the text associated with a link element.