The goog.dom.a11y.Announcer Class

goog.dom.a11y.Announcer
> goog.Disposable

goog.dom.a11y.Announcer(domHelper)

Class that allows messages to be spoken by assistive technologies that the user may have active.

domHelper {goog.dom.DomHelper}
DOM helper.

.addOnDisposeCallback(callback, opt_scope)

Inherited from goog.Disposable .

Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.

callback {!Function}
The callback function.
opt_scope {Object=}
An optional scope to call the callback in.

.creationStack {string}

Inherited from goog.Disposable .

If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.

.dispose()

Inherited from goog.Disposable .

Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.

returns {void}
Nothing.

.isDisposed()

Inherited from goog.Disposable .

returns {boolean}
Whether the object has been disposed of.

.registerDisposable(disposable)

Inherited from goog.Disposable .

Associates a disposable object with this object so that they will be disposed together.

disposable {goog.disposable.IDisposable}
that will be disposed when this object is disposed.

.say(message, opt_priority)

Announce a message to be read by any assistive technologies the user may have active.

message {string}
The message to announce to screen readers.
opt_priority {goog.dom.a11y.LivePriority=}
The priority of the message. Defaults to POLITE.