Hazards

Identifies any potential hazards (e.g., flashing elements, sounds, and motion simulation) that could afflict physiologically sensitive users.

Unlike other accessibility properties, the presence of hazards can be expressed either positively or negatively. This is because users search for content that is safe for them as well as want to know when content is potentially dangerous to them.

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

Parameters

flashing

The publication contains flashing content which can cause photosensitive seizures.

motion

The publication contains motion simulations that can cause motion sickness.

sound

The publication contains sounds which can be uncomfortable.

Constructors

Link copied to clipboard
constructor(flashing: AccessibilityMetadataDisplayGuide.Hazards.Hazard = Hazard.NO_METADATA, motion: AccessibilityMetadataDisplayGuide.Hazards.Hazard = Hazard.NO_METADATA, sound: AccessibilityMetadataDisplayGuide.Hazards.Hazard = Hazard.NO_METADATA)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The publication contains no hazards.

Link copied to clipboard

Indicates whether no information about hazards is available.

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

The presence of hazards is unknown.

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.