UNPKG

537 BTypeScriptView Raw
1import { OpaqueToken } from '@angular/core';
2export declare const LIVE_ANNOUNCER_ELEMENT_TOKEN: OpaqueToken;
3export declare type AriaLivePoliteness = 'off' | 'polite' | 'assertive';
4export declare class MdLiveAnnouncer {
5 private _liveElement;
6 constructor(elementToken: any);
7 /**
8 * @param message Message to be announced to the screenreader
9 * @param politeness The politeness of the announcer element.
10 */
11 announce(message: string, politeness?: AriaLivePoliteness): void;
12 private _createLiveElement();
13}