RichContent

data class RichContent(val extendedAltTextDescriptions: Boolean = false, val mathFormula: Boolean = false, val mathFormulaAsMathML: Boolean = false, val mathFormulaAsLaTeX: Boolean = false, val chemicalFormulaAsMathML: Boolean = false, val chemicalFormulaAsLaTeX: Boolean = false, val closedCaptions: Boolean = false, val openCaptions: Boolean = false, val transcript: Boolean = false) : AccessibilityMetadataDisplayGuide.Field

Indicates the presence of math, chemical formulas, extended descriptions for information rich images, e.g., charts, diagrams, figures, graphs, and whether these are in an accessible format or available in an alternative form, e.g., whether math and chemical formulas are navigable with assistive technologies, or whether extended descriptions are available for information-rich images. In addition, it indicates the presence of videos and if closed captions, open captions, or transcripts for prerecorded audio are available.

https://w3c.github.io/publ-a11y/a11y-meta-display-guide/2.0/guidelines/#rich-content

Parameters

extendedAltTextDescriptions

Information-rich images are described by extended descriptions.

mathFormula

Text descriptions of math are provided.

mathFormulaAsMathML

Math formulas in accessible format (MathML).

mathFormulaAsLaTeX

Math formulas in accessible format (LaTeX).

chemicalFormulaAsMathML

Chemical formulas in accessible format (MathML).

chemicalFormulaAsLaTeX

Chemical formulas in accessible format (LaTeX).

closedCaptions

Videos included in publications have closed captions.

openCaptions

Videos included in publications have open captions.

transcript

Transcript(s) provided.

Constructors

Link copied to clipboard
constructor(extendedAltTextDescriptions: Boolean = false, mathFormula: Boolean = false, mathFormulaAsMathML: Boolean = false, mathFormulaAsLaTeX: Boolean = false, chemicalFormulaAsMathML: Boolean = false, chemicalFormulaAsLaTeX: Boolean = false, closedCaptions: Boolean = false, openCaptions: Boolean = false, transcript: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates whether no information about rich content is available.

Link copied to clipboard
Link copied to clipboard
open override val shouldDisplay: Boolean

Indicates whether this display field should be rendered in the user interface, because it contains useful information.

Link copied to clipboard

List of accessibility claims to display for this field.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun localizedTitle(context: Context): String

Localized title for this display field, for example to use as a section header.