Readout Warning Service
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
A service that coordinates the warning prompt flow when a screen reader is active and a sensitive field is about to be announced. It tracks per-field unlock state, enforces confirmation gestures, and integrates with the platform accessibility APIs.
readout-warning-service
Sources & reasoning
Explicitly called out in §1.2 (line 24) as an NHF-flagged requirement under the universal-design MUST HAVE umbrella. It is bundled with the Phase 1 WCAG accessibility scope and depends on the WCAG primitives to wrap fields uniformly.
-
docs/source/likeperson.md · line 24Varsling ved opplesning av sensitive felt (NHF).
-
docs/source/likeperson.md · line 18Skjermleser-støtte (VoiceOver/JAWS): Alle interaktive elementer skal ha semantiske labels og ARIA-attributter. Særlig kritisk for Blindeforbundet, men relevant for alle.
Responsibilities
- Detect when a screen reader is active on the device
- Present confirmation prompts before announcing sensitive content
- Track unlock state and timeouts per sensitive field
- Log readout events for audit and trust transparency
- Expose configuration for sensitivity levels and gesture requirements
Interfaces
isScreenReaderActive(): boolean
promptForReadout(fieldId, sensitivityLevel): Promise<boolean>
registerSensitiveField(fieldId, config): void
getUnlockState(fieldId): UnlockState
Related Data Entities (2)
Data entities managed by this component