Class PageExtractionController.ContentParams
Object
org.mozilla.geckoview.PageExtractionController.ContentParams
- Enclosing class:
PageExtractionController
Options for controlling how text is extracted from a page.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhen true, attempts to remove boilerplate content from the page using reader mode, falling back to full extraction if unavailable.final booleanWhen true, returns plain prose instead of the default markdown-annotated text. -
Constructor Summary
ConstructorsConstructorDescriptionContentParams(boolean removeBoilerplate, boolean useSimpleText) Construct a new ContentParams. -
Method Summary
-
Field Details
-
removeBoilerplate
public final boolean removeBoilerplateWhen true, attempts to remove boilerplate content from the page using reader mode, falling back to full extraction if unavailable. -
useSimpleText
public final boolean useSimpleTextWhen true, returns plain prose instead of the default markdown-annotated text. Links contribute their text but not their target, and whitespace within a paragraph is collapsed, while the breaks between paragraphs are kept.
-
-
Constructor Details
-
ContentParams
public ContentParams(boolean removeBoilerplate, boolean useSimpleText) Construct a new ContentParams.- Parameters:
removeBoilerplate- whether to remove boilerplate using reader modeuseSimpleText- whether to return plain prose instead of markdown-annotated text
-