Package org.mozilla.geckoview
Class PageExtractionController.PageMetadata
Object
org.mozilla.geckoview.PageExtractionController.PageMetadata
- Enclosing class:
- PageExtractionController
Metadata about a page extracted by
PageExtractionController.SessionPageExtractor.getPageMetadata()-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether the page declares its content to be gated, for example behind a paywall or a registration wall.final booleanWhether the page is likely readable by reader modefinal StringBCP 47 language tag of the pagefinal String[]JSON-LD types as defined by Schema.orgfinal intWord count of all the content on the page -
Constructor Summary
ConstructorsConstructorDescriptionPageMetadata(String[] structuredDataTypes, int wordCount, String language, boolean isReaderable, boolean isGated) Construct a new page metadata object. -
Method Summary
-
Field Details
-
structuredDataTypes
JSON-LD types as defined by Schema.org -
wordCount
public final int wordCountWord count of all the content on the page -
language
BCP 47 language tag of the page -
isReaderable
public final boolean isReaderableWhether the page is likely readable by reader mode -
isGated
public final boolean isGatedWhether the page declares its content to be gated, for example behind a paywall or a registration wall. Derived from the page's Schema.orgisAccessibleForFreemarkup, so this is only ever true for pages that annotate themselves.
-
-
Constructor Details
-
PageMetadata
public PageMetadata(@NonNull String[] structuredDataTypes, int wordCount, @NonNull String language, boolean isReaderable, boolean isGated) Construct a new page metadata object.- Parameters:
structuredDataTypes- JSON-LD types as defined by Schema.orgwordCount- word count of all the content on the pagelanguage- BCP 47 language tag of the pageisReaderable- whether the page is likely readable by reader modeisGated- whether the page declares its content to be gated
-