Announcer

The Announcer: how an Environment speaks a message to assistive technology, a screen reader, say. Core words what's said, as a Reorder group's announcements, and the Environment delivers it through its platform's own channel, as @wardic/dom does. Each announcement replaces the last.

import * as Announcer from "@wardic/core/Announcer"

const announcer = yield* Announcer.Announcer
announcer.announce("Picked up Milk, position 2 of 5.")

Classes

Announcer

An Environment's channel to assistive technology.

Extends

  • Context.Service

Properties

announce
readonly announce: (message) => void;

Speaks message, replacing the last announcement.

Parameters
message

string

Returns

void

Variables

layerSilent

const layerSilent: Layer.Layer<Announcer>;

An Announcer that says nothing, for an Environment with no assistive technology to reach, as the test Environment's.