Class PageExtractionController.PageMetadata

Object
org.mozilla.geckoview.PageExtractionController.PageMetadata
Enclosing class:
PageExtractionController

public static class PageExtractionController.PageMetadata extends Object
  • Field Details

    • structuredDataTypes

      @NonNull public final String[] structuredDataTypes
      JSON-LD types as defined by Schema.org
    • wordCount

      public final int wordCount
      Word count of all the content on the page
    • language

      @NonNull public final String language
      BCP 47 language tag of the page
    • isReaderable

      public final boolean isReaderable
      Whether the page is likely readable by reader mode
    • isGated

      public final boolean isGated
      Whether the page declares its content to be gated, for example behind a paywall or a registration wall. Derived from the page's Schema.org isAccessibleForFree markup, 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.org
      wordCount - word count of all the content on the page
      language - BCP 47 language tag of the page
      isReaderable - whether the page is likely readable by reader mode
      isGated - whether the page declares its content to be gated